From d9f2785ed1322f100137e2e9f76ee2e509a6fd4a Mon Sep 17 00:00:00 2001 From: huiyan Date: Fri, 11 Mar 2016 13:37:08 +0800 Subject: Gallery2: Adjust the layout of bottom controls of photopage Implement new feature: Adjust the layout of bottom controls of photopage, to display nicely. Change-Id: I61791303dc8e474976a948ff4fe72031d49f07e2 CRs-Fixed: 988011 --- res/layout/photopage_bottom_controls.xml | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'res/layout') diff --git a/res/layout/photopage_bottom_controls.xml b/res/layout/photopage_bottom_controls.xml index fc9882280..3f19af150 100644 --- a/res/layout/photopage_bottom_controls.xml +++ b/res/layout/photopage_bottom_controls.xml @@ -1,10 +1,12 @@ - @@ -12,12 +14,9 @@ android:id="@+id/photopage_bottom_control_edit" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentBottom="true" - android:layout_alignParentStart="true" - android:layout_centerVertical="true" + android:layout_gravity="center_vertical" + android:layout_weight="1" android:background="@null" - android:paddingStart="20dp" - android:layout_marginBottom="20dp" android:src="@drawable/edit" android:visibility="gone" /> @@ -25,10 +24,8 @@ android:id="@+id/photopage_bottom_control_share" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentBottom="true" - android:layout_marginBottom="20dp" - android:layout_centerInParent="true" - android:layout_centerVertical="true" + android:layout_gravity="center_vertical" + android:layout_weight="1" android:background="@null" android:src="@drawable/share" android:visibility="gone" /> @@ -37,13 +34,10 @@ android:id="@+id/photopage_bottom_control_delete" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_alignParentBottom="true" - android:layout_alignParentEnd="true" - android:layout_centerVertical="true" - android:layout_marginBottom="20dp" + android:layout_gravity="center_vertical" + android:layout_weight="1" android:background="@null" - android:paddingEnd="20dp" android:src="@drawable/delete" android:visibility="gone" /> - + -- cgit v1.2.3