From 86baafe436b3816593ec37572d510502bed28841 Mon Sep 17 00:00:00 2001 From: Agatha Man Date: Wed, 13 May 2020 23:24:27 -0700 Subject: Make rotary cards scroll horizontally - Added new card with buttons in a circle for wraparound demo - Made cards wider to take up more space - Add text descriptions on each card Bug: 154971276 Test: manual, make RotaryPlayground and install Change-Id: I1b3f97d28d784655159a0329790ce5e525f68151 --- RotaryPlayground/Android.bp | 1 + RotaryPlayground/res/layout/rotary_cards.xml | 174 +++++++++++++++++++++------ RotaryPlayground/res/values/dimens.xml | 4 + RotaryPlayground/res/values/strings.xml | 14 +++ 4 files changed, 155 insertions(+), 38 deletions(-) (limited to 'RotaryPlayground') diff --git a/RotaryPlayground/Android.bp b/RotaryPlayground/Android.bp index 2371831..b8304ad 100644 --- a/RotaryPlayground/Android.bp +++ b/RotaryPlayground/Android.bp @@ -23,6 +23,7 @@ android_app { sdk_version: "system_current", static_libs: [ + "androidx-constraintlayout_constraintlayout", "car-apps-common", "car-ui-lib", ], diff --git a/RotaryPlayground/res/layout/rotary_cards.xml b/RotaryPlayground/res/layout/rotary_cards.xml index 7774918..7fc8297 100644 --- a/RotaryPlayground/res/layout/rotary_cards.xml +++ b/RotaryPlayground/res/layout/rotary_cards.xml @@ -16,6 +16,7 @@ --> @@ -48,9 +49,14 @@ android:id="@+id/card_normal" android:background="@color/card_background_color" android:layout_margin="16dp" - android:layout_width="300dp" + android:layout_width="@dimen/card_width" android:layout_height="match_parent" + android:padding="@dimen/card_padding" android:orientation="vertical"> +