Adding additional top view fragment layouts to support wide tablets.

master
Tomasz Półgrabia 2016-10-23 14:31:26 +02:00
parent 36c448d5d8
commit c120b35220
2 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<pl.tpolgrabia.urbanexplorer.views.SwipeFrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="pl.tpolgrabia.urbanexplorer.MainActivity" android:orientation="horizontal">
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout android:id="@+id/frag_container1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
</FrameLayout>
<FrameLayout android:id="@+id/frag_container2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
</FrameLayout>
<FrameLayout android:id="@+id/frag_container3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
</FrameLayout>
</LinearLayout>
</pl.tpolgrabia.urbanexplorer.views.SwipeFrameLayout>

View File

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="utf-8"?>
<pl.tpolgrabia.urbanexplorer.views.SwipeFrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="pl.tpolgrabia.urbanexplorer.MainActivity" android:orientation="horizontal">
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent">
<FrameLayout android:id="@+id/frag_container1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
</FrameLayout>
<FrameLayout android:id="@+id/frag_container2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1">
</FrameLayout>
</LinearLayout>
</pl.tpolgrabia.urbanexplorer.views.SwipeFrameLayout>