From 272f70b628bb615cba2e7e8fd4eb9b2fd6389d4b Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Mon, 21 Nov 2016 15:56:32 -0800 Subject: snap: Fix bottom bar layout * Fix all the widths so we resize properly when there are two shutter buttons, and so that we don't start the app with the controls off center. Change-Id: I51e0a5c9bbb6a55625d385d1e52b01a88338e6cf --- res/layout/camera_controls.xml | 64 ++++++++++++++++++++++++------------------ 1 file changed, 36 insertions(+), 28 deletions(-) diff --git a/res/layout/camera_controls.xml b/res/layout/camera_controls.xml index b447dec6d..39bedb059 100644 --- a/res/layout/camera_controls.xml +++ b/res/layout/camera_controls.xml @@ -71,7 +71,8 @@ android:id="@+id/bottom_bar" android:layout_width="match_parent" android:layout_height="@dimen/preview_bottom_margin" - android:gravity="bottom" + android:gravity="center" + android:weightSum="100" android:background="@drawable/camera_controls_bg_translucent" android:orientation="horizontal"> @@ -79,36 +80,43 @@ android:id="@+id/preview_thumb" android:layout_width="0dp" android:layout_height="@dimen/thumbnail_size" - android:layout_weight="1" - android:layout_gravity="center" + android:layout_weight="25" + android:layout_gravity="center_horizontal|center_vertical" android:background="@android:color/transparent" android:contentDescription="@string/switch_photo_filmstrip" android:scaleType="fitCenter" /> - - - + android:layout_height="match_parent" + android:gravity="center" + android:layout_weight="50" + android:orientation="horizontal"> + + + + + + -- cgit v1.2.3