aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYabin Huang <yabinh@google.com>2020-09-02 14:42:41 -0700
committerYabin Huang <yabinh@google.com>2020-09-02 14:42:41 -0700
commit88dcf5cec2d9596f1f108e605a57414472f41a82 (patch)
treeaa4b3c10848daa65ae555a87b8374186b725fdab
parent906bc03cfb1399cde58dcefd71febccd84249c9c (diff)
downloadtests-88dcf5cec2d9596f1f108e605a57414472f41a82.tar.gz
Add an example of nudge shortcut
Bug: 155698037 Test: manual Change-Id: I071b7b03f29a2b455f9064600df7c0968a8750a5
-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"