|
|
@@ -1,5 +1,5 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<LinearLayout
|
|
|
+<android.support.design.widget.CoordinatorLayout
|
|
|
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"
|
|
|
@@ -9,27 +9,70 @@
|
|
|
android:background="@color/CFFFFFF"
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
- <android.support.design.widget.TabLayout
|
|
|
- android:id="@+id/alarm_tab_layout"
|
|
|
+ <android.support.design.widget.AppBarLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="55dp"
|
|
|
- android:layout_marginLeft="25dp"
|
|
|
- android:layout_marginRight="25dp"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
android:background="@color/CFFFFFF"
|
|
|
- app:tabBackground="@drawable/tab_indicator"
|
|
|
- app:tabGravity="center"
|
|
|
- app:tabIndicatorColor="@color/C000000"/>
|
|
|
+ app:elevation="0dp"
|
|
|
+ >
|
|
|
|
|
|
- <RelativeLayout
|
|
|
+ <android.support.design.widget.CollapsingToolbarLayout
|
|
|
+ android:id="@+id/collapsing_tool_bar"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="wrap_content"
|
|
|
+ android:background="@color/CFFFFFF"
|
|
|
+ app:layout_scrollFlags="scroll|exitUntilCollapsed">
|
|
|
+
|
|
|
+ <android.support.design.widget.TabLayout
|
|
|
+ android:id="@+id/alarm_tab_layout"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="55dp"
|
|
|
+ android:layout_marginStart="25dp"
|
|
|
+ android:layout_marginEnd="25dp"
|
|
|
+ app:layout_collapseMode="parallax"
|
|
|
+ app:tabIndicatorHeight="0dp"/>
|
|
|
+
|
|
|
+ <android.support.v7.widget.Toolbar
|
|
|
+ android:id="@+id/toolbar_invisible"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="30dp"
|
|
|
+ android:background="@null"
|
|
|
+ android:visibility="invisible"
|
|
|
+ app:elevation="0dp"
|
|
|
+ app:layout_collapseMode="pin"
|
|
|
+ app:layout_scrollFlags="scroll"
|
|
|
+ tools:visibility="visible"
|
|
|
+ />
|
|
|
+
|
|
|
+ </android.support.design.widget.CollapsingToolbarLayout>
|
|
|
+
|
|
|
+ <android.support.design.widget.TabLayout
|
|
|
+ android:id="@+id/noti_tab_bar"
|
|
|
+ android:layout_width="match_parent"
|
|
|
+ android:layout_height="3dp"
|
|
|
+ android:layout_gravity="bottom"
|
|
|
+ android:layout_marginStart="25dp"
|
|
|
+ android:layout_marginEnd="25dp"
|
|
|
+ android:clickable="false"
|
|
|
+ app:tabBackground="@color/CEBEBEB"
|
|
|
+ app:tabIndicatorHeight="3dp"
|
|
|
+ app:tabTextColor="@color/CEBEBEB"
|
|
|
+ />
|
|
|
+
|
|
|
+ </android.support.design.widget.AppBarLayout>
|
|
|
+
|
|
|
+ <LinearLayout
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent">
|
|
|
+ android:layout_height="match_parent"
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
|
+ >
|
|
|
|
|
|
<android.support.v4.view.ViewPager
|
|
|
android:id="@+id/alarm_view_pager"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent"/>
|
|
|
|
|
|
- </RelativeLayout>
|
|
|
+ </LinearLayout>
|
|
|
|
|
|
|
|
|
-</LinearLayout>
|
|
|
+</android.support.design.widget.CoordinatorLayout>
|