diff options
author | Harry Slatyer <slatyer@google.com> | 2018-03-15 13:40:28 +1100 |
---|---|---|
committer | Harry Slatyer <slatyer@google.com> | 2018-03-15 14:36:24 +1100 |
commit | 1336b99ba5e009ca175f130133bec0dc8dea4567 (patch) | |
tree | d9d3493b58461a74c5c46e0b6e060170b0b7fa06 /tests/EmbeddedKitchenSinkApp | |
parent | b40de197fb9b60bcbb20c243ba6b1a41e25e2e67 (diff) | |
download | Car-1336b99ba5e009ca175f130133bec0dc8dea4567.tar.gz |
Arrange kitchensink inst cluster buttons vertically.
Now they all fit on narrow screens.
Change-Id: Iac878e9cfaa450c145d403c606d13137e9ce85a1
Test: Manually on owl.
Bug: 74872424
Diffstat (limited to 'tests/EmbeddedKitchenSinkApp')
-rw-r--r-- | tests/EmbeddedKitchenSinkApp/res/layout/instrument_cluster.xml | 43 |
1 files changed, 27 insertions, 16 deletions
diff --git a/tests/EmbeddedKitchenSinkApp/res/layout/instrument_cluster.xml b/tests/EmbeddedKitchenSinkApp/res/layout/instrument_cluster.xml index cb785a9790..f58af8f372 100644 --- a/tests/EmbeddedKitchenSinkApp/res/layout/instrument_cluster.xml +++ b/tests/EmbeddedKitchenSinkApp/res/layout/instrument_cluster.xml @@ -22,20 +22,31 @@ <LinearLayout android:orientation="vertical" - android:layout_width="wrap_content" - android:layout_height="wrap_content"> - <LinearLayout - android:orientation="horizontal" - android:layout_width="match_parent" - android:layout_height="wrap_content"> - <Button android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/cluster_start" android:id="@+id/cluster_start_button"/> - <Button android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/cluster_turn_left" android:id="@+id/cluster_turn_left_button"/> - <Button android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/cluster_stop" android:id="@+id/cluster_stop_button"/> - <Button android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/cluster_start_activity" android:id="@+id/cluster_start_activity"/> - </LinearLayout> + android:layout_width="match_parent" + android:layout_height="match_parent"> + <Button + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:text="@string/cluster_start" + android:id="@+id/cluster_start_button"/> + <Button + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:text="@string/cluster_turn_left" + android:id="@+id/cluster_turn_left_button"/> + <Button + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:text="@string/cluster_stop" + android:id="@+id/cluster_stop_button"/> + <Button + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" + android:text="@string/cluster_start_activity" + android:id="@+id/cluster_start_activity"/> </LinearLayout> -</LinearLayout>
\ No newline at end of file +</LinearLayout> |