summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorwqi <wqi@codeaurora.org>2016-04-13 09:57:51 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-04-18 03:28:28 -0700
commit070553715d59999705e470794fae85d916e6d600 (patch)
tree0f63289c90f301a4bb68344c3db78b3c565cd672 /res
parentf4653073a0f154ec447d58a51a6e0ce461b21764 (diff)
downloadandroid_packages_apps_Gallery2-070553715d59999705e470794fae85d916e6d600.tar.gz
android_packages_apps_Gallery2-070553715d59999705e470794fae85d916e6d600.tar.bz2
android_packages_apps_Gallery2-070553715d59999705e470794fae85d916e6d600.zip
Gallery2: Modify actionbar in photo editor interface.
Add a exit button and move save button to right in photo editor interface according to UX specification document. Change-Id: I2cdbb0b4967822b78f65af6eea2b8571a6e653b9 CRs-Fixed: 988043
Diffstat (limited to 'res')
-rw-r--r--res/layout/filtershow_actionbar.xml31
1 files changed, 20 insertions, 11 deletions
diff --git a/res/layout/filtershow_actionbar.xml b/res/layout/filtershow_actionbar.xml
index ec9ed2914..7e6d62504 100644
--- a/res/layout/filtershow_actionbar.xml
+++ b/res/layout/filtershow_actionbar.xml
@@ -14,20 +14,29 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="wrap_content"
- android:layout_height="@dimen/toolbar_height" >
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="@dimen/toolbar_height"
+ android:orientation="horizontal">
+
+ <ImageButton
+ android:id="@+id/filtershow_exit"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:background="@android:color/transparent"
+ android:scaleType="fitCenter"
+ android:src="@drawable/cancel"
+ android:layout_gravity="left|center_vertical"
+ android:paddingStart="16dp" />
<TextView
android:id="@+id/filtershow_done"
android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:drawablePadding="24dp"
- android:drawableStart="@drawable/done"
- android:gravity="center_vertical"
- android:paddingBottom="15dp"
+ android:layout_height="wrap_content"
+ android:paddingRight="13dp"
+ android:textSize="17sp"
android:text="@string/save"
- android:textColor="#ffffff"
- android:textSize="18sp" />
+ android:layout_gravity="center_vertical|right"
+ android:textColor="#ffffff" />
-</LinearLayout> \ No newline at end of file
+</FrameLayout> \ No newline at end of file