From f08f7f093762a3d0a5c53313267bad75203a0f30 Mon Sep 17 00:00:00 2001 From: Janne Koschinski <janne@kuschku.de> Date: Thu, 22 Feb 2018 13:36:29 +0100 Subject: [PATCH] Added landscape layout for tablets --- .../res/layout-sw720dp-land/activity_main.xml | 91 +++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 app/src/main/res/layout-sw720dp-land/activity_main.xml diff --git a/app/src/main/res/layout-sw720dp-land/activity_main.xml b/app/src/main/res/layout-sw720dp-land/activity_main.xml new file mode 100644 index 000000000..0944bbbef --- /dev/null +++ b/app/src/main/res/layout-sw720dp-land/activity_main.xml @@ -0,0 +1,91 @@ +<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/drawerLayout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal"> + + <fragment + android:id="@+id/fragment_chat_list" + android:name="de.kuschku.quasseldroid_ng.ui.chat.buffers.BufferViewConfigFragment" + android:layout_width="320dp" + android:layout_height="match_parent" + tools:layout="@layout/fragment_chat_list" /> + + <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true" + android:orientation="vertical"> + + <android.support.design.widget.AppBarLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:theme="?attr/actionBarTheme"> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize"> + + <android.support.v7.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="match_parent" + app:contentInsetStartWithNavigation="0dp" + app:popupTheme="@style/Widget.PopupOverlay"> + + <fragment + android:id="@+id/fragment_toolbar" + android:name="de.kuschku.quasseldroid_ng.ui.chat.ToolbarFragment" + android:layout_width="fill_parent" + android:layout_height="fill_parent" + tools:layout="@layout/fragment_toolbar" /> + + </android.support.v7.widget.Toolbar> + + <de.kuschku.quasseldroid_ng.util.ui.MaterialContentLoadingProgressBar + android:id="@+id/progressBar" + style="@style/Widget.MaterialProgressBar.ProgressBar.Horizontal.NoPadding" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="bottom" + app:mpb_progressStyle="horizontal" + app:mpb_setBothDrawables="true" + app:mpb_useIntrinsicPadding="false" + tools:indeterminate="true" /> + </FrameLayout> + + </android.support.design.widget.AppBarLayout> + + <fragment + android:id="@+id/fragment_messages" + android:name="de.kuschku.quasseldroid_ng.ui.chat.messages.MessageListFragment" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1" + tools:layout="@layout/fragment_messages" /> + + <fragment + android:id="@+id/fragment_editor" + android:name="de.kuschku.quasseldroid_ng.ui.chat.EditorFragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + tools:layout="@layout/fragment_editor" /> + + </LinearLayout> + </LinearLayout> + + <fragment + android:id="@+id/fragment_nick_list" + android:name="de.kuschku.quasseldroid_ng.ui.chat.NickListFragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="end" + tools:layout="@layout/fragment_nick_list" /> +</android.support.v4.widget.DrawerLayout> -- GitLab