From 6779b1118d9fd2f1e659679d9f2cad3127d0c822 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Thu, 26 Dec 2019 16:49:06 -0800 Subject: Switch to viewbinding and styles and prepare layout wrapper --- app/src/main/res/layout/activity_main.xml | 16 +++++++++++---- .../main/res/layout/activity_main_bottom_tabs.xml | 23 +++++++++++++++------- .../res/layout/activity_main_drawer_wrapper.xml | 18 +++++++++++++++++ 3 files changed, 46 insertions(+), 11 deletions(-) create mode 100644 app/src/main/res/layout/activity_main_drawer_wrapper.xml (limited to 'app/src/main/res/layout') diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 8fa9283f..f46175d1 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -13,14 +13,22 @@ android:layout_height="wrap_content" android:theme="@style/AppTheme.AppBarOverlay"> - + - + - + - + diff --git a/app/src/main/res/layout/activity_main_bottom_tabs.xml b/app/src/main/res/layout/activity_main_bottom_tabs.xml index 2c2527cd..419bbc33 100644 --- a/app/src/main/res/layout/activity_main_bottom_tabs.xml +++ b/app/src/main/res/layout/activity_main_bottom_tabs.xml @@ -3,15 +3,16 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:orientation="vertical"> + android:fitsSystemWindows="true" + android:orientation="vertical" + tools:context=".activities.MainActivity"> + android:fitsSystemWindows="true"> - + - + - + - + diff --git a/app/src/main/res/layout/activity_main_drawer_wrapper.xml b/app/src/main/res/layout/activity_main_drawer_wrapper.xml new file mode 100644 index 00000000..4eebf56a --- /dev/null +++ b/app/src/main/res/layout/activity_main_drawer_wrapper.xml @@ -0,0 +1,18 @@ + + + + + + + \ No newline at end of file -- cgit v1.2.3