diff options
author | jrizzoli <joey@cyanogenmoditalia.it> | 2016-02-22 22:05:17 +0100 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2016-04-03 04:37:42 -0700 |
commit | ba9f88b3d6930bbd686e23672d3b1203dd1a3015 (patch) | |
tree | 878aa39852503863e2dec0c9e3b3d4d371f097e0 | |
parent | 6058c3806372a607f371438a5d132934a057ecc8 (diff) | |
download | android_packages_apps_Snap-ba9f88b3d6930bbd686e23672d3b1203dd1a3015.tar.gz android_packages_apps_Snap-ba9f88b3d6930bbd686e23672d3b1203dd1a3015.tar.bz2 android_packages_apps_Snap-ba9f88b3d6930bbd686e23672d3b1203dd1a3015.zip |
snap: rearrange top view icons
* menu icon should go to the left since it opens a menu that slides in from the left
* arrange other icons to not give odd empty spaces when switching modes or hdr is not supported
Change-Id: Ia5099f2eac47e0aad4ab1419e6d490347976162d
Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
-rw-r--r-- | res/drawable/list_border.xml | 5 | ||||
-rw-r--r-- | res/layout-port/camera_controls.xml | 18 | ||||
-rw-r--r-- | src/com/android/camera/ui/CameraControls.java | 8 |
3 files changed, 13 insertions, 18 deletions
diff --git a/res/drawable/list_border.xml b/res/drawable/list_border.xml index 7d05a087f..e6a380853 100644 --- a/res/drawable/list_border.xml +++ b/res/drawable/list_border.xml @@ -30,9 +30,4 @@ android:shape="rectangle" > <solid android:color="@color/popup_background" /> - - <stroke - android:width="1dip" - android:color="@color/list_divider_color" /> - </shape> diff --git a/res/layout-port/camera_controls.xml b/res/layout-port/camera_controls.xml index 5b92db021..77ff076b9 100644 --- a/res/layout-port/camera_controls.xml +++ b/res/layout-port/camera_controls.xml @@ -25,10 +25,6 @@ android:layout_gravity="bottom" android:clickable="true" /> - <com.android.camera.ui.RotateImageView - android:id="@+id/filter_mode_switcher" - style="@style/ToggleButton" /> - <com.android.camera.ui.ModuleSwitcher android:id="@+id/camera_switcher" style="@style/SwitcherButton" @@ -60,11 +56,17 @@ android:scaleType="fitCenter" /> <com.android.camera.ui.RotateImageView + android:id="@+id/menu" + style="@style/ToggleButton" + android:contentDescription="@string/accessibility_menu_button" + android:src="@drawable/ic_settings" /> + + <com.android.camera.ui.RotateImageView android:id="@+id/front_back_switcher" style="@style/ToggleButton" /> <com.android.camera.ui.RotateImageView - android:id="@+id/hdr_switcher" + android:id="@+id/filter_mode_switcher" style="@style/ToggleButton" /> <com.android.camera.ui.RotateImageView @@ -72,10 +74,8 @@ style="@style/ToggleButton" /> <com.android.camera.ui.RotateImageView - android:id="@+id/menu" - style="@style/ToggleButton" - android:contentDescription="@string/accessibility_menu_button" - android:src="@drawable/ic_settings" /> + android:id="@+id/hdr_switcher" + style="@style/ToggleButton" /> <LinearLayout android:id="@+id/remaining_photos" diff --git a/src/com/android/camera/ui/CameraControls.java b/src/com/android/camera/ui/CameraControls.java index 0c6469709..4a61a7e5b 100644 --- a/src/com/android/camera/ui/CameraControls.java +++ b/src/com/android/camera/ui/CameraControls.java @@ -201,8 +201,8 @@ public class CameraControls extends RotatableLayout { mHistogramView = (HistogramView) findViewById(R.id.histogram); mTopViews = new View[] { - mSceneModeSwitcher, mFilterModeSwitcher, mHdrSwitcher, - mFrontBackSwitcher, mMenu, mAutoHdrNotice, mHistogramView + mMenu, mFrontBackSwitcher, mFilterModeSwitcher, + mSceneModeSwitcher, mHdrSwitcher, mAutoHdrNotice, mHistogramView }; mBottomViews = new View[] { mPreview, mShutter, mSwitcher @@ -252,8 +252,8 @@ public class CameraControls extends RotatableLayout { int w = r - l; int h = b - t; - asRow(true, w, h, rotation, mSceneModeSwitcher, mFilterModeSwitcher, - mFrontBackSwitcher, mHdrSwitcher, mMenu); + asRow(true, w, h, rotation, mMenu,mFrontBackSwitcher, + mFilterModeSwitcher, mSceneModeSwitcher, mHdrSwitcher); center(mAutoHdrNotice, l, t + mSize, r, t + mSize + mAutoHdrNotice.getMeasuredHeight(), |