summaryrefslogtreecommitdiffstats
path: root/res/layout/main.xml
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2011-09-09 13:33:44 +0800
committerOwen Lin <owenlin@google.com>2011-09-14 14:34:56 +0800
commit8e565703e8d482421714383a8ad40a67929ce2da (patch)
tree4ad80e8db3d6886afa98249deceb0cc3107f6c16 /res/layout/main.xml
parent3a54b9ae67eb7b38f19ea0bdeeef26efc0a1afa1 (diff)
downloadandroid_packages_apps_Gallery2-8e565703e8d482421714383a8ad40a67929ce2da.tar.gz
android_packages_apps_Gallery2-8e565703e8d482421714383a8ad40a67929ce2da.tar.bz2
android_packages_apps_Gallery2-8e565703e8d482421714383a8ad40a67929ce2da.zip
Use different UIs for phone's portrait mode in manage offline page.
fix: 5100503 The original UI design is not suitable for phone's portait mode. I move the UIs from GL view to android View to get better support. Change-Id: Ice5f536129f66b51cdaf4db1be750be7bc072c7f
Diffstat (limited to 'res/layout/main.xml')
-rw-r--r--res/layout/main.xml21
1 files changed, 16 insertions, 5 deletions
diff --git a/res/layout/main.xml b/res/layout/main.xml
index d5188330e..b71ea502a 100644
--- a/res/layout/main.xml
+++ b/res/layout/main.xml
@@ -1,10 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.android.gallery3d.ui.GLRootView
- android:id="@+id/gl_root_view"
- android:layout_width="match_parent"
- android:layout_height="match_parent"/>
-</LinearLayout>
+ android:id="@+id/gl_root_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_alignParentBottom="true"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentTop="true"/>
+ <FrameLayout android:id="@+id/footer"
+ android:visibility="gone"
+ android:layout_alignParentBottom="true"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentRight="true"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"/>
+</RelativeLayout>