82 lines
3.6 KiB
XML
82 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<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/drawer_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
tools:context="com.stardust.scriptdroid.ui.main.MainActivity">
|
|
|
|
|
|
<android.support.design.widget.CoordinatorLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false">
|
|
|
|
<android.support.design.widget.AppBarLayout
|
|
android:id="@+id/app_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="16dp"
|
|
android:theme="@style/AppTheme.AppBarOverlay">
|
|
|
|
<android.support.v7.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
android:title="@string/_app_name"
|
|
app:layout_scrollFlags="scroll|enterAlways"
|
|
app:popupTheme="@style/AppTheme.PopupOverlay"/>
|
|
|
|
<android.support.design.widget.TabLayout
|
|
android:id="@+id/tab"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
app:tabGravity="fill"
|
|
app:tabIndicatorColor="@android:color/white"
|
|
app:tabMode="scrollable"/>
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
<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"/>
|
|
|
|
<com.stardust.theme.widget.ThemeColorFloatingActionButton
|
|
android:id="@+id/fab"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="right|end|bottom"
|
|
android:layout_margin="16dp"
|
|
android:src="@drawable/ic_add_white_48dp"
|
|
app:backgroundTint="@color/colorPrimary"
|
|
app:layout_anchor="@id/viewpager"
|
|
app:layout_anchorGravity="bottom|right|end"
|
|
app:layout_behavior="com.stardust.scriptdroid.ui.widget.ScrollAwareFABBehavior"/>
|
|
|
|
<com.stardust.scriptdroid.ui.main.FloatingActionMenu
|
|
android:id="@+id/floating_action_menu"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="right|end|bottom"
|
|
android:layout_margin="16dp"
|
|
android:clipChildren="false"
|
|
android:clipToPadding="false"
|
|
android:visibility="invisible"
|
|
app:layout_anchor="@id/viewpager"
|
|
app:layout_anchorGravity="bottom|right|end"/>
|
|
|
|
</android.support.design.widget.CoordinatorLayout>
|
|
|
|
<fragment
|
|
android:name="com.stardust.scriptdroid.ui.main.drawer.DrawerFragment_"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_gravity="start"
|
|
android:fitsSystemWindows="false"/>
|
|
|
|
</android.support.v4.widget.DrawerLayout>
|
|
|