summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-06-19 21:06:16 +0400
committerAndrew Dolgov <[email protected]>2012-06-19 21:06:16 +0400
commitff6f103900685bdc1fd3ee359cf6724f67480b0c (patch)
tree4831ae3d39b5dccde6d2e25dd834cc9a99db20d3 /res
parentbd937be78428e6572f6ed9724cee04aa03ad4a98 (diff)
xlarge layout fixes
Diffstat (limited to 'res')
-rw-r--r--res/layout-xlarge-port/main.xml92
-rw-r--r--res/layout-xlarge/main.xml61
2 files changed, 90 insertions, 63 deletions
diff --git a/res/layout-xlarge-port/main.xml b/res/layout-xlarge-port/main.xml
index c5629508..40a88092 100644
--- a/res/layout-xlarge-port/main.xml
+++ b/res/layout-xlarge-port/main.xml
@@ -1,36 +1,64 @@
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_height="fill_parent" android:orientation="horizontal" android:id="@+id/main" android:layout_width="fill_parent">
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/main"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent" >
- <LinearLayout
- android:id="@+id/loading_container"
+ <LinearLayout
+ android:id="@+id/loading_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="0"
+ android:gravity="center"
+ android:orientation="vertical" >
+
+ <ProgressBar
+ android:id="@+id/loading_progress"
+ style="?android:attr/progressBarStyleLarge"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content" />
+
+ <TextView
+ android:id="@+id/loading_message"
android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="0"
- android:gravity="center"
- android:orientation="vertical" >
-
- <ProgressBar
- android:id="@+id/loading_progress"
- style="?android:attr/progressBarStyleLarge"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
-
- <TextView
- android:id="@+id/loading_message"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:gravity="center_horizontal"
- android:text="@string/loading_message"
- android:textAppearance="?android:attr/textAppearanceLarge" />
- </LinearLayout>
-
- <FrameLayout android:layout_height="match_parent" android:layout_width="300dp" android:layout_weight="0" android:id="@+id/feeds_fragment"></FrameLayout>
- <FrameLayout android:layout_height="match_parent" android:layout_width="300dp" android:layout_weight="0" android:id="@+id/cats_fragment"></FrameLayout>
- <LinearLayout
- android:id="@+id/linearLayout2"
- android:layout_height="match_parent" android:orientation="vertical" android:layout_width="match_parent">
- <FrameLayout android:layout_weight="0.5" android:id="@+id/headlines_fragment" android:layout_width="match_parent" android:layout_height="0dp"></FrameLayout>
- <FrameLayout android:layout_weight="0.5" android:id="@+id/article_fragment" android:layout_width="match_parent" android:layout_height="0dp"></FrameLayout>
- </LinearLayout>
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:text="@string/loading_message"
+ android:textAppearance="?android:attr/textAppearanceLarge" />
</LinearLayout>
+
+ <LinearLayout
+ android:orientation="horizontal"
+ android:id="@+id/fragment_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+ <FrameLayout
+ android:id="@+id/feeds_fragment"
+ android:layout_width="300dp"
+ android:layout_height="match_parent"
+ android:layout_weight="0" >
+ </FrameLayout>
+
+ <LinearLayout
+ android:id="@+id/vertical_fragment_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical" >
+
+ <FrameLayout
+ android:id="@+id/headlines_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="0.5" >
+ </FrameLayout>
+
+ <FrameLayout
+ android:id="@+id/article_fragment"
+ android:layout_width="match_parent"
+ android:layout_height="0dp"
+ android:layout_weight="0.5" >
+ </FrameLayout>
+ </LinearLayout>
+
+ </LinearLayout>
+</FrameLayout> \ No newline at end of file
diff --git a/res/layout-xlarge/main.xml b/res/layout-xlarge/main.xml
index 1254cc79..d5f84dce 100644
--- a/res/layout-xlarge/main.xml
+++ b/res/layout-xlarge/main.xml
@@ -1,8 +1,8 @@
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
- android:orientation="horizontal" >
+ >
<LinearLayout
android:id="@+id/loading_container"
@@ -24,35 +24,34 @@
android:gravity="center_horizontal"
android:text="@string/loading_message"
android:textAppearance="?android:attr/textAppearanceLarge" />
-
</LinearLayout>
- <FrameLayout
- android:id="@+id/feeds_fragment"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.3" >
- </FrameLayout>
-
- <FrameLayout
- android:id="@+id/cats_fragment"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.3" >
- </FrameLayout>
-
- <FrameLayout
- android:id="@+id/headlines_fragment"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.5" >
- </FrameLayout>
-
- <FrameLayout
- android:id="@+id/article_fragment"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="0.5" >
- </FrameLayout>
+ <LinearLayout
+ android:orientation="horizontal"
+ android:id="@+id/fragment_container"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <FrameLayout
+ android:id="@+id/feeds_fragment"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="0.3" >
+ </FrameLayout>
+
+ <FrameLayout
+ android:id="@+id/headlines_fragment"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="0.5" >
+ </FrameLayout>
+
+ <FrameLayout
+ android:id="@+id/article_fragment"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="0.5" >
+ </FrameLayout>
+ </LinearLayout>
-</LinearLayout> \ No newline at end of file
+</FrameLayout> \ No newline at end of file