summaryrefslogtreecommitdiffhomepage
path: root/app/src/main/res/layout-sw600dp/main_activity.xml
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-07-29 03:46:45 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-07-29 03:46:45 +0200
commite5a5bad240c9d31611823ca1c41b7abdffec0993 (patch)
tree0a4b1558689f77450b8b624e9557abc740e6caf7 /app/src/main/res/layout-sw600dp/main_activity.xml
parentca92ac60b755acb7b27a9f74b85d136ac6b45072 (diff)
MainActivity: only show two column on tablets
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/res/layout-sw600dp/main_activity.xml')
-rw-r--r--app/src/main/res/layout-sw600dp/main_activity.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/src/main/res/layout-sw600dp/main_activity.xml b/app/src/main/res/layout-sw600dp/main_activity.xml
new file mode 100644
index 00000000..b751c8c1
--- /dev/null
+++ b/app/src/main/res/layout-sw600dp/main_activity.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:id="@+id/master_detail_wrapper"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:baselineAligned="false"
+ android:divider="?android:attr/dividerHorizontal"
+ android:orientation="horizontal"
+ android:showDividers="middle"
+ tools:context=".activity.MainActivity">
+
+ <fragment
+ android:name="com.wireguard.android.fragment.TunnelListFragment"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="2"
+ android:tag="LIST" />
+
+ <FrameLayout
+ android:id="@+id/detail_container"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="3" />
+</LinearLayout>