diff options
author | Yabin Huang <yabinh@google.com> | 2022-01-25 00:06:46 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2022-01-25 00:06:46 +0000 |
commit | 205fc6629f2ce65b4cd4293d1c8b271514686e33 (patch) | |
tree | 9f2d537e2be2b366b3332830843121a9d7c79b32 | |
parent | 20a759400a12fb2ab0bdcb19de5e7679cd10a83d (diff) | |
parent | 97d06f3624665bb7cf682f886fae9561da505fee (diff) | |
download | tests-205fc6629f2ce65b4cd4293d1c8b271514686e33.tar.gz |
Add an example of specifying off-screen nudge action per application am: 97d06f3624
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Car/tests/+/16666319
Change-Id: Id4f49d9c66b0aad7c2cbf32ca5dbe13d894b247d
-rw-r--r-- | RotaryPlayground/AndroidManifest.xml | 7 |
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 |