2015-06-20 18:46:04 +00:00
|
|
|
<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2015-09-14 18:05:15 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
android:id="@+id/drawer_layout"
|
2015-06-29 15:43:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2015-11-19 15:50:03 +00:00
|
|
|
android:fitsSystemWindows="true"
|
2015-06-20 18:46:04 +00:00
|
|
|
android:gravity="center"
|
2015-11-23 10:44:55 +00:00
|
|
|
tools:context=".MainActivity">
|
2015-06-20 18:46:04 +00:00
|
|
|
|
2015-10-09 21:13:28 +00:00
|
|
|
<android.support.design.widget.CoordinatorLayout
|
2015-09-14 18:05:15 +00:00
|
|
|
android:id="@+id/main_content"
|
2015-06-20 18:46:04 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2015-09-14 18:05:15 +00:00
|
|
|
android:elevation="0dp"
|
|
|
|
|
tools:context=".MainActivity">
|
|
|
|
|
|
2015-11-19 15:50:03 +00:00
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/fragment_container"
|
2015-09-14 18:05:15 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
|
|
|
|
|
|
|
|
|
|
<android.support.design.widget.AppBarLayout
|
|
|
|
|
android:id="@+id/appbar"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
2015-10-20 23:06:03 +00:00
|
|
|
android:fitsSystemWindows="false">
|
2015-09-14 18:05:15 +00:00
|
|
|
|
|
|
|
|
<android.support.design.widget.CollapsingToolbarLayout
|
|
|
|
|
android:id="@+id/collapsing_toolbar"
|
|
|
|
|
android:layout_width="match_parent"
|
2015-10-29 21:37:06 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-10-20 23:06:03 +00:00
|
|
|
android:fitsSystemWindows="false"
|
2015-10-11 16:32:20 +00:00
|
|
|
app:titleEnabled="false"
|
2015-09-14 18:05:15 +00:00
|
|
|
app:contentScrim="?attr/colorPrimary"
|
2015-10-20 23:06:03 +00:00
|
|
|
app:expandedTitleMarginEnd="?attr/actionBarSize"
|
|
|
|
|
app:expandedTitleMarginStart="0dp"
|
2015-09-14 18:05:15 +00:00
|
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
|
|
|
|
|
|
|
|
|
<include
|
|
|
|
|
android:id="@+id/avatar_with_bars"
|
|
|
|
|
layout="@layout/avatar_with_bars"
|
|
|
|
|
android:layout_width="match_parent"
|
2015-10-29 21:37:06 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-10-20 23:06:03 +00:00
|
|
|
android:layout_marginTop="?attr/actionBarSize"
|
2015-09-14 18:05:15 +00:00
|
|
|
app:layout_collapseMode="parallax" />
|
|
|
|
|
|
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
|
android:layout_width="match_parent"
|
2015-10-20 23:06:03 +00:00
|
|
|
android:layout_height="wrap_content"
|
2015-11-19 15:50:03 +00:00
|
|
|
android:minHeight="?attr/actionBarSize"
|
2015-09-14 18:05:15 +00:00
|
|
|
android:theme="@style/Toolbar"
|
|
|
|
|
app:layout_collapseMode="pin"
|
|
|
|
|
app:popupTheme="@style/ThemeOverlay.AppCompat.Dark" />
|
|
|
|
|
</android.support.design.widget.CollapsingToolbarLayout>
|
|
|
|
|
|
|
|
|
|
<android.support.design.widget.TabLayout
|
|
|
|
|
android:id="@+id/detail_tabs"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
|
android:layout_gravity="bottom"
|
2015-11-19 15:50:03 +00:00
|
|
|
android:background="?attr/colorPrimary"
|
2015-09-14 18:05:15 +00:00
|
|
|
android:elevation="0dp"
|
2015-09-15 19:56:23 +00:00
|
|
|
android:fillViewport="false"
|
2015-11-19 15:50:03 +00:00
|
|
|
|
|
|
|
|
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
|
2015-09-14 18:05:15 +00:00
|
|
|
app:layout_anchor="@+id/collapsing_toolbar"
|
|
|
|
|
app:layout_anchorGravity="bottom"
|
|
|
|
|
|
|
|
|
|
app:layout_collapseMode="pin"
|
2015-09-15 19:56:23 +00:00
|
|
|
app:tabGravity="fill"
|
2015-09-14 18:05:15 +00:00
|
|
|
app:tabIndicatorColor="@android:color/white"
|
2015-09-15 19:56:23 +00:00
|
|
|
app:tabMode="fixed" />
|
2015-10-29 21:50:40 +00:00
|
|
|
</android.support.design.widget.AppBarLayout>
|
2015-11-28 18:30:12 +00:00
|
|
|
|
|
|
|
|
<FrameLayout
|
|
|
|
|
android:id="@+id/floating_menu_wrapper"
|
|
|
|
|
app:layout_behavior="com.habitrpg.android.habitica.ui.helpers.FloatingActionMenuBehavior"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="bottom|right"
|
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
|
android:layout_alignParentRight="true"
|
|
|
|
|
android:layout_marginBottom="16dp"
|
|
|
|
|
android:layout_marginRight="8dp" />
|
|
|
|
|
|
2015-09-14 18:05:15 +00:00
|
|
|
</android.support.design.widget.CoordinatorLayout>
|
2015-06-20 18:46:04 +00:00
|
|
|
</android.support.v4.widget.DrawerLayout>
|