aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYabin Huang <yabinh@google.com>2022-01-12 12:10:06 -0800
committerYabin Huang <yabinh@google.com>2022-01-19 00:05:24 +0000
commit97d06f3624665bb7cf682f886fae9561da505fee (patch)
tree9f2d537e2be2b366b3332830843121a9d7c79b32
parentd9e95cb7f2aae6a5fc151d34d8c10eb5f2f9d5d5 (diff)
downloadtests-97d06f3624665bb7cf682f886fae9561da505fee.tar.gz
Add an example of specifying off-screen nudge action per application
Bug: 208739202 Test: manual Change-Id: I20b37af80a93e364d28bd6f9ad195d1d158adfb5
-rw-r--r--RotaryPlayground/AndroidManifest.xml7
1 files changed, 6 insertions, 1 deletions
diff --git a/RotaryPlayground/AndroidManifest.xml b/RotaryPlayground/AndroidManifest.xml
index 8877af4..f526657 100644
--- a/RotaryPlayground/AndroidManifest.xml
+++ b/RotaryPlayground/AndroidManifest.xml
@@ -20,6 +20,10 @@
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.App">
+ <!-- Define app-specific custom off-screen nudge right action: KEYCODE_BACK. This action
+ works only when this application is in foreground. For a given activity, this action
+ can be overridden by the action specified in that activity. -->
+ <meta-data android:name="nudge.right.keyCode" android:value="4"/>
<activity
android:name=".RotaryActivity"
android:label="@string/app_name"
@@ -32,7 +36,8 @@
<!-- Define app-specific custom off-screen nudge up action:
GLOBAL_ACTION_NOTIFICATIONS -->
<meta-data android:name="nudge.up.globalAction" android:value="4"/>
- <!-- Define app-specific custom off-screen nudge left action: KEYCODE_BACK -->
+ <!-- Define app-specific custom off-screen nudge left action: KEYCODE_BACK. This action
+ works only when this activity is in foreground. -->
<meta-data android:name="nudge.left.keyCode" android:value="4"/>
<!-- Define app-specific custom off-screen nudge down action: launch Settings -->
<meta-data