summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorRavi Banuri <ravibanuri@codeaurora.org>2015-10-20 19:41:58 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2015-11-08 22:55:59 -0800
commitc963ee889ea7e1f05c51129a8c742f8cfd874047 (patch)
treeedadc802543d7898189713a1ca06a96228a27024 /res/layout
parent7a41c376e299d9944a956004c5176b31a5ef0a4e (diff)
downloadandroid_packages_apps_Gallery2-c963ee889ea7e1f05c51129a8c742f8cfd874047.tar.gz
android_packages_apps_Gallery2-c963ee889ea7e1f05c51129a8c742f8cfd874047.tar.bz2
android_packages_apps_Gallery2-c963ee889ea7e1f05c51129a8c742f8cfd874047.zip
Gallery: Gallery UX enhancement
Modified aosp files to change Gallery2 application UI according to UX specification document. Change-Id: I8f2668a6339371460cb772097a9a5987d02e5b5a CRs-Fixed: 926603
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/filtershow_actionbar_effects.xml140
1 files changed, 44 insertions, 96 deletions
diff --git a/res/layout/filtershow_actionbar_effects.xml b/res/layout/filtershow_actionbar_effects.xml
index 995399618..90554bbf2 100644
--- a/res/layout/filtershow_actionbar_effects.xml
+++ b/res/layout/filtershow_actionbar_effects.xml
@@ -2,6 +2,7 @@
<!--
Copyright (C) 2013 The Android Open Source Project
+
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
@@ -16,107 +17,54 @@
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:id="@+id/top"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical"
+ android:layout_height="48dip"
+ android:baselineAligned="false"
+ android:orientation="horizontal"
android:visibility="visible" >
- <View
- android:background="@color/toolbar_separation_line"
- android:layout_height="1dip"
- android:layout_width="match_parent"/>
+ <ImageButton
+ android:id="@+id/cancelFilter"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:layout_gravity="left|center_vertical"
+ android:layout_weight=".1"
+ android:background="@android:color/transparent"
+ android:gravity="center"
+ android:src="@drawable/ic_menu_cancel_holo_light"
+ android:textSize="18dip" />
<LinearLayout
+ android:id="@+id/panelAccessoryViewList"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="vertical">
-
- <LinearLayout
- android:id="@+id/controlArea"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal"
- android:layout_alignParentBottom="true"
- android:visibility="visible">
-
- <SeekBar
- android:id="@+id/primarySeekBar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- style="@style/FilterShowSlider"/>
-
- </LinearLayout>
-
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="48dip"
- android:background="@color/background_main_toolbar"
- android:orientation="horizontal"
- android:baselineAligned="false"
- android:visibility="visible">
-
- <ImageButton
- android:id="@+id/cancelFilter"
- android:layout_width="wrap_content"
- android:layout_height="fill_parent"
- android:layout_gravity="left|center_vertical"
- android:background="@android:color/transparent"
- android:layout_weight=".1"
- android:gravity="center"
- android:src="@drawable/ic_menu_cancel_holo_light"
- android:textSize="18dip"/>
-
- <ImageView
- android:layout_width="2dp"
- android:layout_height="fill_parent"
- android:src="@drawable/filtershow_vertical_bar"/>
-
- <LinearLayout
- android:id="@+id/panelAccessoryViewList"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:orientation="horizontal"
- android:visibility="visible">
-
- <com.android.gallery3d.filtershow.editors.SwapButton
- android:id="@+id/applyEffect"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:layout_gravity="center"
- android:background="@android:color/transparent"
- android:text="@string/apply_effect"
- android:textSize="18dip"
- android:drawableEnd="@drawable/filtershow_menu_marker_rtl"
- android:textAllCaps="true"
- />
-
- </LinearLayout>
-
- <ImageView
- android:layout_width="2dp"
- android:layout_height="fill_parent"
- android:src="@drawable/filtershow_vertical_bar"/>
-
- <ImageButton
- android:id="@+id/applyFilter"
- android:layout_width="wrap_content"
- android:layout_height="fill_parent"
- android:layout_gravity="right|center_vertical"
- android:layout_weight=".1"
- android:background="@android:color/transparent"
- android:gravity="center"
- android:src="@drawable/ic_menu_done_holo_light"
- android:textSize="18dip"/>
- </LinearLayout>
-
- <FrameLayout android:id="@+id/state_panel_container"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:visibility="visible" />
-
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:gravity="center"
+ android:orientation="horizontal"
+ android:visibility="visible" >
+
+ <com.android.gallery3d.filtershow.editors.SwapButton
+ android:id="@+id/applyEffect"
+ android:layout_width="@dimen/swap_button_width"
+ android:layout_height="@dimen/swap_button_height"
+ android:layout_gravity="center_vertical|center_horizontal"
+ android:background="@android:color/transparent"
+ android:drawableEnd="@drawable/spinner_triangle"
+ android:gravity="center"
+ android:text="@string/apply_effect"
+ android:textColor="#ffffff"
+ android:textSize="16sp" />
</LinearLayout>
-</LinearLayout>
+ <ImageButton
+ android:id="@+id/applyFilter"
+ android:layout_width="wrap_content"
+ android:layout_height="fill_parent"
+ android:layout_gravity="right|center_vertical"
+ android:layout_weight=".1"
+ android:background="@android:color/transparent"
+ android:gravity="center"
+ android:src="@drawable/ic_menu_done_holo_light"
+ android:textSize="18dip" />
+
+</LinearLayout> \ No newline at end of file