From 4538ee80f8a9eb338281db00fb349e111eeb5aaf Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Wed, 9 Nov 2016 00:08:42 -0800 Subject: snap: UX improvements v1 * Make the camera controls do sane things- get rid of the manual placement of every widget and use layouts * Animate everything correctly * Show ripples when clicking the shutter * Clean up a metric ton of dead code * Moved more code into BaseUI * Make setting up the camera controls less verbose and magical * Fixed up panorama layout Change-Id: Iaed44ca0201a2e2641e1c2460d3ff9ec3eae2d85 --- res/layout/camera_controls.xml | 182 +++++++++++++++++++++---------------- res/layout/list_menu.xml | 1 + res/layout/pano_module_capture.xml | 2 +- 3 files changed, 105 insertions(+), 80 deletions(-) (limited to 'res/layout') diff --git a/res/layout/camera_controls.xml b/res/layout/camera_controls.xml index 3f097425f..524198713 100644 --- a/res/layout/camera_controls.xml +++ b/res/layout/camera_controls.xml @@ -18,12 +18,53 @@ android:layout_width="match_parent" android:layout_height="match_parent" > - + android:layout_height="0dp" + android:gravity="center_vertical" + android:orientation="horizontal"> + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + diff --git a/res/layout/pano_module_capture.xml b/res/layout/pano_module_capture.xml index ad34cf808..9f53ff102 100644 --- a/res/layout/pano_module_capture.xml +++ b/res/layout/pano_module_capture.xml @@ -23,7 +23,7 @@ android:id="@+id/pano_preview_layout" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_gravity="center" > + android:layout_gravity="center_vertical|center_horizontal" >