diff options
| author | huiyan <huiyan@codeaurora.org> | 2016-03-11 13:37:08 +0800 |
|---|---|---|
| committer | huiyan <huiyan@codeaurora.org> | 2016-03-11 13:38:57 +0800 |
| commit | d9f2785ed1322f100137e2e9f76ee2e509a6fd4a (patch) | |
| tree | 33627f030c61c0568ec7331421926cbabd89ce74 /res | |
| parent | 97b5b5bdf26970e8873ada05de73555a9872c933 (diff) | |
| download | android_packages_apps_Gallery2-d9f2785ed1322f100137e2e9f76ee2e509a6fd4a.tar.gz android_packages_apps_Gallery2-d9f2785ed1322f100137e2e9f76ee2e509a6fd4a.tar.bz2 android_packages_apps_Gallery2-d9f2785ed1322f100137e2e9f76ee2e509a6fd4a.zip | |
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
Diffstat (limited to 'res')
| -rw-r--r-- | res/layout/photopage_bottom_controls.xml | 26 |
1 files changed, 10 insertions, 16 deletions
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 @@ <?xml version="1.0" encoding="utf-8"?> -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/photopage_bottom_controls" android:layout_width="match_parent" android:layout_height="56dp" android:layout_alignParentBottom="true" + android:layout_gravity="bottom" android:background="#42000000" + android:gravity="bottom" android:orientation="horizontal" android:visibility="gone" > @@ -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" /> -</RelativeLayout> +</LinearLayout> |
