aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-10-30 22:22:18 -0700
committerScott Jackson <daneren2005@gmail.com>2013-10-30 22:22:18 -0700
commite537320af8d34f2256527d64a86007b129370889 (patch)
treedb1ea570e828140c2cbcbb677e4189044cf0c8ac /res
parent4e6c087c5973b6246315d6c4aa16577825325069 (diff)
downloaddsub-e537320af8d34f2256527d64a86007b129370889.tar.gz
dsub-e537320af8d34f2256527d64a86007b129370889.tar.bz2
dsub-e537320af8d34f2256527d64a86007b129370889.zip
#123 Add structure to support multiple fragments when in tablet mode
Diffstat (limited to 'res')
-rw-r--r--res/layout-large-land/abstract_fragment_container.xml21
-rw-r--r--res/layout/abstract_fragment_activity.xml6
-rw-r--r--res/layout/abstract_fragment_container.xml6
3 files changed, 28 insertions, 5 deletions
diff --git a/res/layout-large-land/abstract_fragment_container.xml b/res/layout-large-land/abstract_fragment_container.xml
new file mode 100644
index 00000000..511d63aa
--- /dev/null
+++ b/res/layout-large-land/abstract_fragment_container.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="horizontal"
+ android:layout_width="match_parent"
+ android:layout_height="0px"
+ android:layout_weight="1">
+
+ <FrameLayout
+ android:id="@+id/fragment_container"
+ android:layout_width="0px"
+ android:layout_height="match_parent"
+ android:layout_weight="4"/>
+
+ <FrameLayout
+ android:id="@+id/fragment_second_container"
+ android:layout_width="0px"
+ android:layout_height="match_parent"
+ android:layout_weight="6"
+ android:visibility="gone"/>
+
+</LinearLayout> \ No newline at end of file
diff --git a/res/layout/abstract_fragment_activity.xml b/res/layout/abstract_fragment_activity.xml
index d9f178c5..11357313 100644
--- a/res/layout/abstract_fragment_activity.xml
+++ b/res/layout/abstract_fragment_activity.xml
@@ -4,11 +4,7 @@
android:gravity="center_horizontal"
android:orientation="vertical" >
- <FrameLayout
- android:id="@+id/fragment_container"
- android:layout_width="match_parent"
- android:layout_height="0px"
- android:layout_weight="1"/>
+ <include layout="@layout/abstract_fragment_container" />
<View
android:layout_width="fill_parent"
diff --git a/res/layout/abstract_fragment_container.xml b/res/layout/abstract_fragment_container.xml
new file mode 100644
index 00000000..d4a8607f
--- /dev/null
+++ b/res/layout/abstract_fragment_container.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/fragment_container"
+ android:layout_width="match_parent"
+ android:layout_height="0px"
+ android:layout_weight="1"/> \ No newline at end of file