diff options
author | Danny Baumann <dannybaumann@web.de> | 2016-11-30 09:20:26 +0100 |
---|---|---|
committer | Michael Bestas <mikeioannina@gmail.com> | 2017-01-04 22:00:45 +0200 |
commit | e56d6a7d169a027615e3c132fc08ee18708a3128 (patch) | |
tree | 262057aaf683861197669a276c35ded3bc0151e8 /res/layout/camera_controls.xml | |
parent | 2bdd1d84429afd31c76c263c9623f2728a5eb4b0 (diff) | |
download | android_packages_apps_Snap-e56d6a7d169a027615e3c132fc08ee18708a3128.tar.gz android_packages_apps_Snap-e56d6a7d169a027615e3c132fc08ee18708a3128.tar.bz2 android_packages_apps_Snap-e56d6a7d169a027615e3c132fc08ee18708a3128.zip |
Modernize look of review controls.
Change-Id: I79f74502364a523a7c9c9f8ae3c63c3fcfebac3d
Diffstat (limited to 'res/layout/camera_controls.xml')
-rw-r--r-- | res/layout/camera_controls.xml | 112 |
1 files changed, 63 insertions, 49 deletions
diff --git a/res/layout/camera_controls.xml b/res/layout/camera_controls.xml index 04c2f9e46..5e6993e12 100644 --- a/res/layout/camera_controls.xml +++ b/res/layout/camera_controls.xml @@ -71,67 +71,81 @@ android:id="@+id/bottom_bar" android:layout_width="match_parent" android:layout_height="@dimen/preview_bottom_margin" - android:gravity="center" - android:weightSum="100" android:background="@drawable/camera_controls_bg_opaque" - android:orientation="horizontal"> - - <com.android.camera.ui.RotateImageView - android:id="@+id/preview_thumb" - android:layout_width="0dp" - android:layout_height="@dimen/thumbnail_size" - 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:orientation="vertical"> <LinearLayout - android:layout_width="0dp" - android:layout_height="match_parent" + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" android:gravity="center" - android:layout_weight="50" + android:weightSum="100" android:orientation="horizontal"> - <com.android.camera.ShutterButton - android:id="@+id/shutter_button" - android:layout_width="wrap_content" - android:layout_height="wrap_content" + <com.android.camera.ui.RotateImageView + android:id="@+id/preview_thumb" + android:layout_width="0dp" + android:layout_height="@dimen/thumbnail_size" + android:layout_weight="25" android:layout_gravity="center_horizontal|center_vertical" - android:clickable="true" - android:contentDescription="@string/accessibility_shutter_button" - android:focusable="true" - android:scaleType="fitCenter" - android:src="@drawable/btn_new_shutter" /> - - <ImageView - android:id="@+id/video_button" - android:visibility="gone" - android:layout_width="wrap_content" + android:background="@android:color/transparent" + android:contentDescription="@string/switch_photo_filmstrip" + android:scaleType="fitCenter" /> + + <LinearLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:gravity="center" + android:layout_weight="50" + android:orientation="horizontal"> + + <com.android.camera.ShutterButton + android:id="@+id/shutter_button" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal|center_vertical" + android:clickable="true" + android:contentDescription="@string/accessibility_shutter_button" + android:focusable="true" + android:scaleType="fitCenter" + android:src="@drawable/btn_new_shutter" /> + + <ImageView + android:id="@+id/video_button" + android:visibility="gone" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_horizontal|center_vertical" + android:clickable="true" + android:contentDescription="@string/accessibility_shutter_button" + android:focusable="true" + android:scaleType="fitCenter" + android:src="@drawable/btn_new_shutter_video" /> + + </LinearLayout> + + <FrameLayout + android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_gravity="center_horizontal|center_vertical" - android:clickable="true" - android:contentDescription="@string/accessibility_shutter_button" - android:focusable="true" - android:scaleType="fitCenter" - android:src="@drawable/btn_new_shutter_video" /> + android:layout_weight="25"> - </LinearLayout> + <com.android.camera.ui.ModuleSwitcher + android:id="@+id/camera_switcher" + style="@style/SwitcherButton" + android:layout_gravity="center" + android:scaleType="center" + android:contentDescription="@string/accessibility_mode_picker" /> + </FrameLayout> - <FrameLayout - android:layout_width="0dp" - android:layout_height="wrap_content" - android:layout_weight="25"> + </LinearLayout> - <com.android.camera.ui.ModuleSwitcher - android:id="@+id/camera_switcher" - style="@style/SwitcherButton" - android:layout_gravity="center" - android:scaleType="center" - android:contentDescription="@string/accessibility_mode_picker" /> - </FrameLayout> + <ViewStub + android:id="@+id/review_control_stub" + android:layout="@layout/review_module_control" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> - </LinearLayout> + </LinearLayout> <LinearLayout android:id="@+id/remaining_photos" |