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"
|
2015-10-09 21:13:28 +00:00
|
|
|
xmlns:fab="http://schemas.android.com/apk/res-auto"
|
2015-09-14 18:05:15 +00:00
|
|
|
android:id="@+id/drawer_layout"
|
2015-06-29 15:43:03 +00:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2015-06-20 18:46:04 +00:00
|
|
|
android:gravity="center"
|
2015-06-29 15:43:03 +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">
|
|
|
|
|
|
|
|
|
|
<android.support.v4.view.ViewPager
|
|
|
|
|
android:id="@+id/viewpager"
|
|
|
|
|
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"
|
|
|
|
|
android:layout_height="210dp"
|
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"
|
|
|
|
|
android:layout_height="140dp"
|
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-09-14 18:05:15 +00:00
|
|
|
android:theme="@style/Toolbar"
|
|
|
|
|
app:layout_collapseMode="pin"
|
2015-10-20 23:06:03 +00:00
|
|
|
android:minHeight="?attr/actionBarSize"
|
2015-09-14 18:05:15 +00:00
|
|
|
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-10-29 20:23:23 +00:00
|
|
|
android:background="@color/brand_200"
|
2015-09-14 18:05:15 +00:00
|
|
|
android:elevation="0dp"
|
2015-09-15 19:56:23 +00:00
|
|
|
android:fillViewport="false"
|
2015-10-11 16:32:20 +00:00
|
|
|
android:theme="@style/MyCustomTabLayout"
|
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-06-20 18:46:04 +00:00
|
|
|
|
2015-10-29 18:53:37 +00:00
|
|
|
</android.support.design.widget.AppBarLayout>/
|
2015-10-09 21:13:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.github.clans.fab.FloatingActionMenu
|
|
|
|
|
android:id="@+id/fab.menu"
|
|
|
|
|
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"
|
|
|
|
|
fab:menu_fab_size="normal"
|
|
|
|
|
fab:menu_labels_paddingTop="8dp"
|
|
|
|
|
fab:menu_labels_paddingRight="8dp"
|
|
|
|
|
fab:menu_labels_paddingBottom="8dp"
|
|
|
|
|
fab:menu_labels_paddingLeft="8dp"
|
|
|
|
|
|
|
|
|
|
fab:menu_colorNormal="@color/brand"
|
|
|
|
|
fab:menu_colorPressed="@color/brand_400"
|
|
|
|
|
fab:menu_colorRipple="#FFFFFF"
|
|
|
|
|
fab:menu_animationDelayPerItem="50"
|
|
|
|
|
fab:menu_icon="@drawable/fab_add"
|
|
|
|
|
fab:menu_buttonSpacing="2dp">
|
|
|
|
|
|
|
|
|
|
<com.github.clans.fab.FloatingActionButton
|
|
|
|
|
android:id="@+id/fab.new.habit"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
|
|
fab:fab_colorNormal="@color/brand"
|
|
|
|
|
fab:fab_colorPressed="@color/brand_400"
|
|
|
|
|
fab:fab_colorRipple="#FFFFFF"
|
|
|
|
|
|
|
|
|
|
fab:fab_shadowColor="#000"
|
|
|
|
|
fab:fab_elevationCompat="6dp"
|
|
|
|
|
android:src="@drawable/fab_add"
|
|
|
|
|
fab:fab_size="mini"
|
|
|
|
|
fab:fab_label="New Habit" />
|
|
|
|
|
|
|
|
|
|
<com.github.clans.fab.FloatingActionButton
|
|
|
|
|
android:id="@+id/fab.new.daily"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
|
|
fab:fab_colorNormal="@color/brand"
|
|
|
|
|
fab:fab_colorPressed="@color/brand_400"
|
|
|
|
|
fab:fab_colorRipple="#FFFFFF"
|
|
|
|
|
|
|
|
|
|
fab:fab_shadowColor="#000"
|
|
|
|
|
fab:fab_elevationCompat="6dp"
|
|
|
|
|
|
2015-10-19 18:25:57 +00:00
|
|
|
android:src="@drawable/fab_add"
|
2015-10-09 21:13:28 +00:00
|
|
|
fab:fab_size="mini"
|
|
|
|
|
fab:fab_label="New Daily" />
|
|
|
|
|
|
|
|
|
|
<com.github.clans.fab.FloatingActionButton
|
|
|
|
|
android:id="@+id/fab.new.todo"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
|
|
fab:fab_colorNormal="@color/brand"
|
|
|
|
|
fab:fab_colorPressed="@color/brand_400"
|
|
|
|
|
fab:fab_colorRipple="#FFFFFF"
|
|
|
|
|
|
|
|
|
|
fab:fab_shadowColor="#000"
|
|
|
|
|
fab:fab_elevationCompat="6dp"
|
|
|
|
|
|
2015-10-19 18:25:57 +00:00
|
|
|
android:src="@drawable/fab_add"
|
2015-10-09 21:13:28 +00:00
|
|
|
fab:fab_size="mini"
|
|
|
|
|
fab:fab_label="New Todo" />
|
|
|
|
|
|
|
|
|
|
<com.github.clans.fab.FloatingActionButton
|
|
|
|
|
android:id="@+id/fab.new.reward"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
|
|
fab:fab_colorNormal="@color/brand"
|
|
|
|
|
fab:fab_colorPressed="@color/brand_400"
|
|
|
|
|
fab:fab_colorRipple="#FFFFFF"
|
|
|
|
|
|
|
|
|
|
fab:fab_shadowColor="#000"
|
|
|
|
|
fab:fab_elevationCompat="6dp"
|
|
|
|
|
|
2015-10-19 18:25:57 +00:00
|
|
|
android:src="@drawable/fab_add"
|
2015-10-09 21:13:28 +00:00
|
|
|
fab:fab_size="mini"
|
|
|
|
|
fab:fab_label="New Reward" />
|
|
|
|
|
|
|
|
|
|
</com.github.clans.fab.FloatingActionMenu>
|
|
|
|
|
|
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>
|