aboutsummaryrefslogtreecommitdiff
path: root/RotaryPlayground
diff options
context:
space:
mode:
authorDanny Epstein <depstein@google.com>2020-11-23 16:51:00 -0800
committerDanny Epstein <depstein@google.com>2020-11-23 16:51:00 -0800
commitd2a33c0982a8047ebb94f9214b7b229c0f924604 (patch)
treec83d39b6e06a554ece845da3fb4834591c5961b0 /RotaryPlayground
parentd89dd38cba83d67b8bfe227effd7ea499f65aa0f (diff)
downloadtests-d2a33c0982a8047ebb94f9214b7b229c0f924604.tar.gz
Use custom app:rotaryScrollEnabled attribute
Make Scroll tab in RotaryPlayground use app:rotaryScrollEnabled custom attribute rather than setting the content description. Test: Use Scroll tab in RotaryPlayground Bug: 171339427 Change-Id: Id44fa7dcc9220c9b91b45f8ad24fba108dfe4039
Diffstat (limited to 'RotaryPlayground')
-rw-r--r--RotaryPlayground/res/layout/rotary_scroll.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/RotaryPlayground/res/layout/rotary_scroll.xml b/RotaryPlayground/res/layout/rotary_scroll.xml
index 843a380..ed550cd 100644
--- a/RotaryPlayground/res/layout/rotary_scroll.xml
+++ b/RotaryPlayground/res/layout/rotary_scroll.xml
@@ -17,6 +17,7 @@
<com.android.car.ui.FocusArea
xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
@@ -33,11 +34,10 @@
with interactive (focusable) content. -->
<com.android.car.ui.recyclerview.CarUiRecyclerView
android:id="@+id/rotary_scroll_view"
- android:contentDescription="com.android.car.ui.utils.VERTICALLY_SCROLLABLE"
android:layout_width="match_parent"
android:layout_height="0dp"
- android:layout_weight="1"/>
- <!-- TODO(b/171339427) Use app:rotaryScrollEnabled instead of contentDescription. -->
+ android:layout_weight="1"
+ app:rotaryScrollEnabled="true"/>
<EditText
android:layout_width="match_parent"