aboutsummaryrefslogtreecommitdiff
path: root/RotaryPlayground
diff options
context:
space:
mode:
authorYabin Huang <yabinh@google.com>2020-09-04 01:34:38 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-09-04 01:34:38 +0000
commit133ba730aab3d6dc65e2a758c75199661e55662f (patch)
tree8faa80f1b257db8039c65bc84d0307aaefb28cd6 /RotaryPlayground
parentc1aae2bda8ef4c2693ce37cd65d44783391e3e10 (diff)
parent88dcf5cec2d9596f1f108e605a57414472f41a82 (diff)
downloadtests-133ba730aab3d6dc65e2a758c75199661e55662f.tar.gz
Merge "Add an example of nudge shortcut" into rvc-qpr-dev
Diffstat (limited to 'RotaryPlayground')
-rw-r--r--RotaryPlayground/res/layout/rotary_cards.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/RotaryPlayground/res/layout/rotary_cards.xml b/RotaryPlayground/res/layout/rotary_cards.xml
index e3d9e87..b197058 100644
--- a/RotaryPlayground/res/layout/rotary_cards.xml
+++ b/RotaryPlayground/res/layout/rotary_cards.xml
@@ -52,12 +52,15 @@
android:layout_width="@dimen/card_width"
android:layout_height="match_parent"
android:padding="@dimen/card_padding"
- android:orientation="vertical">
+ android:orientation="vertical"
+ app:nudgeShortcut="@+id/button1"
+ app:nudgeShortcutDirection="up">
<TextView
android:layout_height="@dimen/description_height"
android:layout_width="match_parent"
android:text="@string/card_normal_text" />
<Button
+ android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="50dp"
android:onClick="onRotaryButtonClick"