summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authornicolasroard <nicolasroard@google.com>2013-08-13 23:45:17 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-13 23:45:18 +0000
commit9977d45fcae932581c1788cf3fa96a3f4040a8dc (patch)
tree9de967fd1ffbc795368396873f86903b4007c8cf /res
parentdbc7f5878da3038fbe96609ad21b5324e9645367 (diff)
parente799626df47f99e4ba70bcfe787fdbdac64a8cc7 (diff)
downloadandroid_packages_apps_Gallery2-9977d45fcae932581c1788cf3fa96a3f4040a8dc.tar.gz
android_packages_apps_Gallery2-9977d45fcae932581c1788cf3fa96a3f4040a8dc.tar.bz2
android_packages_apps_Gallery2-9977d45fcae932581c1788cf3fa96a3f4040a8dc.zip
Merge "Fix tablet UI layout" into gb-ub-photos-carlsbad
Diffstat (limited to 'res')
-rw-r--r--res/layout-land/filtershow_activity.xml51
-rw-r--r--res/layout-land/filtershow_editor_panel.xml14
-rw-r--r--res/layout-land/filtershow_main_panel.xml12
-rw-r--r--res/layout-land/filtershow_state_panel_new.xml33
-rw-r--r--res/layout/filtershow_editor_panel.xml7
-rw-r--r--res/layout/filtershow_state_panel_new.xml2
6 files changed, 52 insertions, 67 deletions
diff --git a/res/layout-land/filtershow_activity.xml b/res/layout-land/filtershow_activity.xml
index a47396f2f..e6599f049 100644
--- a/res/layout-land/filtershow_activity.xml
+++ b/res/layout-land/filtershow_activity.xml
@@ -28,33 +28,48 @@
android:animateLayoutChanges="true">
<LinearLayout
- android:layout_weight="1"
android:layout_width="wrap_content"
android:layout_height="match_parent"
- android:orientation="horizontal">
+ android:layout_weight="1"
+ android:orientation="vertical"
+ >
- <FrameLayout
- android:id="@+id/central_panel_container"
- android:layout_gravity="center"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
+ <LinearLayout
android:layout_weight="1"
- android:visibility="gone"/>
+ android:layout_width="wrap_content"
+ android:layout_height="0dp"
+ android:orientation="horizontal">
- <FrameLayout
- android:id="@+id/editorContainer"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1"/>
+ <FrameLayout
+ android:id="@+id/central_panel_container"
+ android:layout_gravity="center"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:visibility="gone"/>
- <com.android.gallery3d.filtershow.imageshow.ImageShow
- android:id="@+id/imageShow"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_weight="1" />
+ <FrameLayout
+ android:id="@+id/editorContainer"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"/>
+
+ <com.android.gallery3d.filtershow.imageshow.ImageShow
+ android:id="@+id/imageShow"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"/>
+
+ </LinearLayout>
+
+ <FrameLayout android:id="@+id/state_panel_container"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:visibility="visible"/>
</LinearLayout>
+
<LinearLayout
android:id="@+id/mainPanel"
android:layout_width="350dip"
diff --git a/res/layout-land/filtershow_editor_panel.xml b/res/layout-land/filtershow_editor_panel.xml
index 015fa26a7..2cb00e3b9 100644
--- a/res/layout-land/filtershow_editor_panel.xml
+++ b/res/layout-land/filtershow_editor_panel.xml
@@ -30,12 +30,12 @@
android:background="@color/background_main_toolbar"
/>
- <FrameLayout android:id="@+id/state_panel_container"
- android:layout_width="match_parent"
- android:layout_height="0dip"
- android:visibility="visible"
- android:layout_gravity="top"
- android:layout_weight="1" />
+ <View
+ android:layout_width="match_parent"
+ android:layout_height="0dip"
+ android:visibility="invisible"
+ android:layout_gravity="top"
+ android:layout_weight="1" />
<LinearLayout
android:layout_width="match_parent"
@@ -62,7 +62,7 @@
<LinearLayout
android:layout_width="match_parent"
- android:layout_height="56dip"
+ android:layout_height="48dip"
android:background="@color/background_main_toolbar"
android:orientation="horizontal"
android:baselineAligned="false"
diff --git a/res/layout-land/filtershow_main_panel.xml b/res/layout-land/filtershow_main_panel.xml
index 705eb690b..6a36de2d7 100644
--- a/res/layout-land/filtershow_main_panel.xml
+++ b/res/layout-land/filtershow_main_panel.xml
@@ -23,13 +23,6 @@
android:animateLayoutChanges="true"
android:visibility="visible" >
- <FrameLayout android:id="@+id/state_panel_container"
- android:layout_width="match_parent"
- android:layout_height="0dip"
- android:visibility="visible"
- android:layout_gravity="top"
- android:layout_weight="1" />
-
<FrameLayout android:id="@+id/category_panel_container"
android:layout_width="match_parent"
android:layout_height="0dip"
@@ -95,4 +88,9 @@
</com.android.gallery3d.filtershow.CenteredLinearLayout>
+ <View
+ android:background="@color/toolbar_separation_line"
+ android:layout_height="1dip"
+ android:layout_width="match_parent"/>
+
</LinearLayout> \ No newline at end of file
diff --git a/res/layout-land/filtershow_state_panel_new.xml b/res/layout-land/filtershow_state_panel_new.xml
deleted file mode 100644
index c83cd8833..000000000
--- a/res/layout-land/filtershow_state_panel_new.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:custom="http://schemas.android.com/apk/res/com.android.gallery3d"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <ScrollView
- android:layout_width="match_parent"
- android:layout_height="0dip"
- android:layout_weight="1"
- android:scrollbars="none">
-
- <com.android.gallery3d.filtershow.state.StatePanelTrack
- android:id="@+id/listStates"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- custom:elemSize="72dip"
- custom:elemEndSize="32dip"
- android:layout_margin="8dip"
- android:animateLayoutChanges="true" />
-
- </ScrollView>
-
- <View
- android:background="@color/state_panel_separation_line"
- android:layout_height="6dip"
- android:layout_width="match_parent"
- android:paddingTop="8dip"/>
-
-</LinearLayout>
diff --git a/res/layout/filtershow_editor_panel.xml b/res/layout/filtershow_editor_panel.xml
index a6da46a08..7332657a4 100644
--- a/res/layout/filtershow_editor_panel.xml
+++ b/res/layout/filtershow_editor_panel.xml
@@ -22,6 +22,11 @@
android:orientation="vertical"
android:visibility="visible" >
+ <View
+ android:background="@color/toolbar_separation_line"
+ android:layout_height="1dip"
+ android:layout_width="match_parent"/>
+
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
@@ -46,7 +51,7 @@
<LinearLayout
android:layout_width="match_parent"
- android:layout_height="56dip"
+ android:layout_height="48dip"
android:background="@color/background_main_toolbar"
android:orientation="horizontal"
android:baselineAligned="false"
diff --git a/res/layout/filtershow_state_panel_new.xml b/res/layout/filtershow_state_panel_new.xml
index 184f85130..b19969567 100644
--- a/res/layout/filtershow_state_panel_new.xml
+++ b/res/layout/filtershow_state_panel_new.xml
@@ -29,7 +29,7 @@
android:layout_height="48dip"
custom:elemEndSize="128dip"
custom:elemSize="128dip"
- android:layout_margin="8dip"
+ android:layout_margin="0dip"
android:animateLayoutChanges="true" />
</HorizontalScrollView>