diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-10-30 22:22:18 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-10-30 22:22:18 -0700 |
commit | e537320af8d34f2256527d64a86007b129370889 (patch) | |
tree | db1ea570e828140c2cbcbb677e4189044cf0c8ac /res | |
parent | 4e6c087c5973b6246315d6c4aa16577825325069 (diff) | |
download | dsub-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.xml | 21 | ||||
-rw-r--r-- | res/layout/abstract_fragment_activity.xml | 6 | ||||
-rw-r--r-- | res/layout/abstract_fragment_container.xml | 6 |
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 |