Japan
このブログでは、Google から開発者のみなさま向けの情報をいち早くお届けします。
Android 用ゲームにおける Back キーの標準的挙動について
2017年7月6日木曜日
Android の Back キー(Back ボタン)は、ユーザーが直近で使用した画面を順番にさかのぼって移動できるように実装するのが基本です。また、ゲームデザインとユーザー体験に留意して動作を調整することも重要です。
そのほかに重要なこととして、ゲームを開発する際、(ゲームプレイのデータなどの)ユーザーにとって貴重な情報を損失しないようにする、ということがあります。それぞれの場面でユーザー体験を考慮し、ユーザーの期待に沿うような実装をご検討いただければ幸いです。
基本的な方針:
Back キーが押された際には何かアクションが起きるようにしてください。何もアクションが起きないとユーザーの混乱を招いてしまう可能性があります。
ゲーム内ナビゲーション:
適切であれば一つ手前の画面に移動する(例 1.1)
チュートリアルの途中、ゲームキャラクターの会話(例1.3)、ゲームの結果画面など、「戻る」動作が望ましくはない画面では、手前の画面に移動する以外の実装をご検討ください。
トップ画面でゲームを直接終了する(例 1.2)
起動する際にゲームを開始できるまでに時間がかかってしまう場合、(直接ゲーム終了せず)ゲーム終了を確認するためのポップアップの実装をご検討ください。
(タブなどの)並列する画面間では前に戻らない
(参照)
Back ボタンと Up ボタンを使用したナビゲーション
例 1.1 画面上の[戻る]と同じ挙動
例 1.2 終了確認用のポップアップ
例 1.3 ゲームキャラクターの会話
その他の挙動例:
すべてのフローティング ウィンドウ(ポップアップやダイアログなど)をキャンセルする(例 2.1, 2.2 )
ゲーム進行中にポーズ画面を表示し、ポーズ画面ではゲームを再開する(例 2.3)
表示中のドロワーを最小化する (例 2.4)
例 2.1 選択が 1 つのみのダイアログでは、「Close」「OK」「X」ダイアログをキャンセル
例 2.2 2 つ以上の選択肢がある場合は「NO」「いいえ」「キャンセル」[戻る]と同じ挙動
例 2.3 ポーズ画面
例 2.4 ドロワー
参考資料:
Back ボタンと Up ボタンを使用したナビゲーション
Core App Quality (英)
Providing Proper Back Navigation(英)
画像提供:
株式会社サイバーエージェント
※本資料の情報は作成日(07/04/2016)時点のものであり、最新の Android や Google Play の仕様やガイドラインとは異なる場合がありますのでご了承ください。
Posted by Kei Kawabata
コメントを投稿
ラベル
#DevFest16
1
#hack4jp
3
A4A
3
Action on Google
2
Addy Osmani
1
ADK
2
AdMob
28
Ads
11
Agency
1
ALPN
1
AMP
38
AMP Cache
4
Analytics
9
Andorid
10
Android
227
Android Auto
1
Android Design Support Library
1
Android Developer Story
4
Android Go
1
Android N
18
Android O
5
Android Pay
1
Android Studio
21
Android Support Library
4
Android Things
5
Android TV
9
Android Wear
24
androidmarket
3
Angular 2
2
AngularJS
2
API
23
APIExpert
45
apk
2
app engine
21
App Indexing
7
App Invites
6
App Maker
1
AppCompat
2
Apps Script
9
aprilfool
3
Architecture Components
1
ArtTech
1
Associate Android Developer Certificate
1
Audio
3
Auth Code
1
Authentication
8
AuthSub
2
Autotrack
2
Awareness API
1
Beacons
6
BigQuery
9
Billing
1
BLE
4
Blink
1
Blockly
1
blogger
1
Brillo
1
Brotli
2
Budou
1
Calendar
1
Cardboard
4
Career
1
Case Study
1
chrome
80
Chrome Custom Tab
1
Chrome Dev Summit
1
chrome extension
4
Chrome for Android
2
Chrome for iOS
2
Chrome OS
2
Chromebook
2
Chromecast
7
chromewebstore
6
Chromium
5
CLI
1
ClientLogin
3
Closure Compiler
1
Cloud
8
Cloud Functions
4
Cloud Next
1
Cloud PubSub
1
Cloud Storage
1
Cloud Test Lab
2
CocoaPods
1
codejam
5
codelab
2
compute engine
3
Context
1
Crash Reporting
1
Dart
2
DataCenter
1
Daydream
4
Deep Learning
1
Demo Party
1
Design Sprint
3
DesignBytes
1
DevArt
3
DevBytes
6
Developer
14
Developer Console
4
Developer Preview
4
Developer Relations
2
DevFest
7
DevFestX
3
devtools
3
DirectShare
1
Doodle
1
DoubleClick
4
Doze モード
1
drive
2
Dynamic Links
2
EarlGrey
1
Easter Egg
1
ECMAScript 2015
1
Eddystone
4
egypt
1
English
2
ES2015
1
ES2016
1
ES6
2
ES7
1
Firebase
74
Firebase Admin SDK
3
Firebase Analytics
9
Firebase Auth
3
Firebase Cloud Messaging
6
Firebase Database
5
Firebase Libraries
1
Firebase Notifications
1
Firebase Performance
1
Firebase Remote Config
4
Flash
1
font
3
G Suite
9
game
17
GDD11JP
56
GDD2010JP
23
GDE
2
GDG
13
GDG Cloud
1
Geo
41
Gingerbread
1
GLIDE
5
Gmail
2
Gmail API
2
Go
1
golang
4
goo.gl
1
Google
5
Google Analytics
2
Google Apps
10
Google Apps Script
3
Google Assistant
2
Google Cast
8
Google Cloud
2
Google Cloud Messaging
10
Google Cloud Platform
6
Google Code-in
1
Google Developer Experts
2
Google Developers Academy
1
Google Developers live
5
Google Developers Summit
1
Google Drive
5
Google Fit
2
Google for Mobile
1
Google for Work
1
Google I/O
5
Google Maps
47
Google Play
46
Google Play Console
2
Google Play Game Services
9
Google Play Services
20
Google Plus
14
Google Search
6
Google Sheets API
3
Google Sign-In
12
Google Slides API
4
Google Summer of Code
1
Google Tag Manager
1
Google Trust Services
1
Google+
2
Googleapps
10
GoogleGames
1
GoogleI/O
28
GoogleLabs
1
GoogleTV
1
Gradle
1
gRPC
2
GTUG
5
GWT
2
hack4jp
2
hackathon
6
Hosting
3
HTML5
17
HTML5Rocks
1
HTTP/2
5
HTTPS
8
ID Token
1
Identity
14
Identity Toolkit
1
Ignite
4
IME
10
Instant Apps
2
intern
2
Invites
1
iOS
18
IoT
4
IPv6
1
Issue Tracker
2
Japanese Input
1
JavaScript
5
K-12
1
Key Transparency
1
Knowledge Graph
1
l10n
8
LINE
1
Lollipop
10
Machine Learning
5
Marshmallow
10
Material
1
Material Design
22
MDL
1
MIDI
2
Mobile
12
Mobile Bootcamp
4
Mobile Sites certification
1
Mobile Vision
3
mod_pagespeed
1
monetize
3
Mozc
14
Music
1
NativeDriver
2
NativeScript
1
ndk
2
Nearby
4
Nexus
2
Nexus S
1
NFC
1
Node.js
2
Noto CJK
1
NPAPI
2
NPN
1
oauth
11
OpenGL
4
OpenID
3
OpenID Connect
4
OpenSocial
1
opensource
16
Optimization
1
Payment
3
People API
1
Performance
9
PersonFinder
1
Physical Web
3
Place Picker
1
Player Analytics
4
Policy
3
Polymer
7
Progressive Web Apps
12
project hosting
1
Promise
1
Promo code
1
Protocol Buffers
1
PRPL
1
publicdata
1
Push API
1
Push Notification
3
Python
1
QUIC
1
RAIL
1
React
1
React Native
2
Realtime Database
3
Redux
1
Remote Config
3
Remote Display API
1
Rewarded Video Ads
2
Runtime Permission
1
Sample Code
2
Santa Tracker
1
schema.org
1
secur
1
security
28
Service Worker
3
SHA-1
1
sketchup
1
SmartLock for Passwords
4
social
4
SPDY
3
speak2tweet
1
Spreadsheet
3
startup
3
Storage
2
streetview
3
Study Jams
3
Swift
1
SwiftShader
1
Task
4
Team Drive
1
techtalk
12
TensorFlow
4
TensorFlow Lite
1
TensorFlow Object Detection API
1
test
3
Test Lab
3
ToS
1
Transliteration
1
Twitter
1
Udacity
19
Unity
3
UX
1
V8
2
VP9
1
VR
9
Vulkan
2
Watch Face
2
wave
2
Weave
1
Web
10
Web Animations
1
Web Components
5
Web Manifest
1
WebAssembly
2
WebGL
1
WebMusic
4
WTM
3
Xcode
1
YouTube
15
YouTube API
1
インタビュー
1
コードサンプル
1
プライバシー
1
言論の自由
1
節電
3
東日本大震災
9
日本語入力
40
ブログ アーカイブ
2017
7
6
5
4
3
2
1
2016
12
11
10
9
8
7
6
5
4
3
2
1
2015
12
11
10
9
8
7
6
5
4
3
2
2014
12
11
10
9
8
7
6
5
4
3
2
1
2013
12
11
10
9
8
7
6
5
4
3
2
1
2012
12
11
10
9
8
7
6
5
4
3
2
1
2011
12
11
10
9
8
7
6
5
4
3
2
1
2010
12
11
Feed
Google
on
Follow @googledevjp
"プロダクトに関するご意見は
プロダクトフォーラム
にお願いします"