Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <android.support.design.widget.CoordinatorLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/main_content"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true"
- >
- <android.support.design.widget.AppBarLayout
- android:id="@+id/appbar"
- android:layout_width="match_parent"
- android:layout_height="115dp"
- android:background="@color/colorPrimaryDark"
- android:fitsSystemWindows="true"
- android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
- >
- <android.support.design.widget.CollapsingToolbarLayout
- android:id="@+id/collapsingToolbar"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="@color/colorPrimaryDark"
- android:fitsSystemWindows="true"
- app:expandedTitleMarginEnd="64dp"
- app:expandedTitleMarginStart="48dp"
- app:layout_scrollFlags="scroll|exitUntilCollapsed">
- <TextView
- android:layout_width="wrap_content"
- android:text="Dashboard"
- android:layout_marginTop="8dp"
- android:id="@+id/title"
- android:layout_marginLeft="50dp"
- android:textSize="20sp"
- android:textColor="@android:color/white"
- android:layout_height="wrap_content" />
- <ImageView
- android:layout_width="30dp"
- android:layout_height="30dp"
- android:layout_margin="8dp"
- android:layout_gravity="right"
- android:src="@drawable/ic_search_black_24dp"
- />
- <ImageView
- android:layout_width="30dp"
- android:layout_height="30dp"
- android:layout_margin="8dp"
- android:src="@drawable/ic_dehaze_black_24dp"
- />
- <android.support.v7.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- app:layout_collapseMode="pin"
- android:background="@color/colorPrimaryDark"
- android:layout_gravity="bottom"
- app:popupTheme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
- <com.ogaclejapan.smarttablayout.SmartTabLayout
- android:id="@+id/tablayout"
- android:layout_width="match_parent"
- android:layout_height="48dp"
- app:stl_indicatorAlwaysInCenter="true"
- app:stl_indicatorWithoutPadding="false"
- app:stl_indicatorInFront="false"
- app:stl_indicatorInterpolation="smart"
- app:stl_indicatorGravity="bottom"
- app:stl_indicatorColor="#eff2f4"
- app:stl_indicatorThickness="4dp"
- app:stl_indicatorWidth="auto"
- app:stl_indicatorCornerRadius="2dp"
- app:stl_overlineColor="#4D000000"
- app:stl_overlineThickness="0dp"
- app:stl_underlineColor="#4D000000"
- app:stl_underlineThickness="1dp"
- app:stl_defaultTabBackground="?attr/selectableItemBackground"
- app:stl_defaultTabTextAllCaps="true"
- app:stl_defaultTabTextColor="#ffffff"
- app:stl_defaultTabTextSize="14sp"
- app:stl_defaultTabTextHorizontalPadding="16dp"
- app:stl_defaultTabTextMinWidth="0dp"
- app:stl_distributeEvenly="false"
- app:stl_clickable="true"
- app:stl_titleOffset="24dp"
- app:stl_drawDecorationAfterTab="false"
- />
- </android.support.v7.widget.Toolbar>
- </android.support.design.widget.CollapsingToolbarLayout>
- </android.support.design.widget.AppBarLayout>
- <android.support.v4.view.ViewPager
- android:layout_width="match_parent"
- app:layout_behavior="@string/appbar_scrolling_view_behavior"
- android:layout_height="wrap_content"
- android:id="@+id/viewpager" />
- </android.support.design.widget.CoordinatorLayout>
- <skrm.Fab
- android:id="@+id/fab"
- style="@style/Widget.MaterialSheetFab.Fab"
- android:layout_alignParentBottom="true"
- android:layout_alignParentEnd="true"
- />
- <com.gordonwong.materialsheetfab.DimOverlayFrameLayout
- android:id="@+id/overlay"
- android:layout_width="match_parent"
- android:layout_height="match_parent" />
- <io.codetail.widget.RevealLinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:gravity="end|bottom"
- android:orientation="vertical"
- >
- <android.support.v7.widget.CardView
- android:id="@+id/fab_sheet"
- style="@style/Widget.MaterialSheetFab.ToolBar">
- <LinearLayout
- android:layout_width="wrap_content"
- android:orientation="vertical"
- android:layout_height="wrap_content">
- <TextView
- android:id="@+id/vertical"
- android:layout_marginTop="8dp"
- style="@style/TextAppearance.MaterialSheetFab.Sheet.Item"
- android:drawableStart="@drawable/ic_action_name"
- android:text="Portraint" />
- <TextView
- android:id="@+id/horizontal"
- style="@style/TextAppearance.MaterialSheetFab.Sheet.Item"
- android:drawableStart="@drawable/land"
- android:text="Landscape" />
- <TextView
- android:id="@+id/selected"
- style="@style/TextAppearance.MaterialSheetFab.Sheet.Item"
- android:background="@color/colorPrimaryDark"
- android:textColor="#FFF"
- android:drawableStart="@drawable/both"
- android:text="Both" />
- </LinearLayout>
- </android.support.v7.widget.CardView>
- </io.codetail.widget.RevealLinearLayout>
Add Comment
Please, Sign In to add comment