2016-10-06 10:29:57 +00:00
|
|
|
<FrameLayout 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:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
tools:context=".ui.activities.MainActivity"
|
|
|
|
|
android:id="@+id/overlayFrameLayout">
|
2018-11-06 15:11:02 +00:00
|
|
|
<androidx.drawerlayout.widget.DrawerLayout
|
2016-10-06 10:29:57 +00:00
|
|
|
android:id="@+id/drawer_layout"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2019-06-03 15:12:29 +00:00
|
|
|
android:gravity="center">
|
2016-10-06 10:29:57 +00:00
|
|
|
|
2018-11-06 15:11:02 +00:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout
|
2016-10-06 10:29:57 +00:00
|
|
|
android:id="@+id/main_content"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:elevation="0dp"
|
|
|
|
|
tools:context=".ui.activities.MainActivity">
|
|
|
|
|
|
2018-11-06 15:11:02 +00:00
|
|
|
<androidx.viewpager.widget.ViewPager
|
2017-10-31 17:31:06 +00:00
|
|
|
android:id="@+id/viewPager"
|
2016-10-06 10:29:57 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2017-01-10 17:05:03 +00:00
|
|
|
android:background="@android:color/white"
|
2016-10-06 10:29:57 +00:00
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
|
|
|
|
|
2018-11-06 15:11:02 +00:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
2016-10-06 10:29:57 +00:00
|
|
|
android:id="@+id/appbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fitsSystemWindows="false">
|
|
|
|
|
|
2018-11-06 15:11:02 +00:00
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
2016-10-06 10:29:57 +00:00
|
|
|
android:id="@+id/collapsing_toolbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:fitsSystemWindows="false"
|
|
|
|
|
app:titleEnabled="false"
|
|
|
|
|
app:contentScrim="?attr/colorPrimary"
|
|
|
|
|
app:expandedTitleMarginEnd="?attr/actionBarSize"
|
|
|
|
|
app:expandedTitleMarginStart="0dp"
|
|
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
|
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/headerImage"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="?attr/actionBarSize"
|
|
|
|
|
app:layout_collapseMode="parallax"
|
|
|
|
|
android:src="@drawable/support_habitica"
|
|
|
|
|
android:paddingBottom="21dp"
|
|
|
|
|
android:contentDescription="@string/support_habitica"/>
|
|
|
|
|
|
2018-11-06 15:11:02 +00:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
2016-10-06 10:29:57 +00:00
|
|
|
android:id="@+id/toolbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:minHeight="?attr/actionBarSize"
|
|
|
|
|
android:theme="@style/Toolbar"
|
|
|
|
|
app:layout_collapseMode="pin"
|
|
|
|
|
app:popupTheme="@style/Theme.AppCompat.Light" />
|
2018-11-06 15:11:02 +00:00
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
2016-10-06 10:29:57 +00:00
|
|
|
|
2018-11-06 15:11:02 +00:00
|
|
|
<com.google.android.material.tabs.TabLayout
|
2017-01-10 17:05:03 +00:00
|
|
|
android:id="@+id/tab_layout"
|
2016-10-06 10:29:57 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="54dp"
|
|
|
|
|
android:layout_gravity="bottom"
|
2019-08-07 08:29:58 +00:00
|
|
|
android:background="?colorPrimaryOffset"
|
2016-10-06 10:29:57 +00:00
|
|
|
android:elevation="0dp"
|
|
|
|
|
android:fillViewport="false"
|
|
|
|
|
|
|
|
|
|
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
|
|
|
|
app:layout_anchor="@+id/collapsing_toolbar"
|
|
|
|
|
app:layout_anchorGravity="bottom"
|
|
|
|
|
|
|
|
|
|
app:layout_collapseMode="pin"
|
|
|
|
|
app:tabGravity="fill"
|
|
|
|
|
app:tabIndicatorColor="@android:color/white"
|
2017-01-10 17:05:03 +00:00
|
|
|
app:tabMode="fixed" />
|
2018-11-06 15:11:02 +00:00
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2016-10-06 10:29:57 +00:00
|
|
|
|
2018-11-06 15:11:02 +00:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|
|
|
|
|
</androidx.drawerlayout.widget.DrawerLayout>
|
2016-10-06 10:29:57 +00:00
|
|
|
</FrameLayout>
|