Advertisement
realanton12345

XML

Oct 11th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.98 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4.     xmlns:tools="http://schemas.android.com/tools"
  5.     android:layout_width="match_parent"
  6.     android:layout_height="match_parent"
  7.     android:fitsSystemWindows="true"
  8.     tools:context="antonmatveyenka.testapp.ScrollingActivity">
  9.  
  10.     <android.support.design.widget.AppBarLayout
  11.         android:id="@+id/app_bar"
  12.         android:layout_width="match_parent"
  13.         android:layout_height="@dimen/app_bar_height"
  14.         android:fitsSystemWindows="true"
  15.         android:theme="@style/AppTheme.AppBarOverlay">
  16.  
  17.         <android.support.design.widget.CollapsingToolbarLayout
  18.             android:id="@+id/toolbar_layout"
  19.             android:layout_width="match_parent"
  20.             android:layout_height="match_parent"
  21.             android:fitsSystemWindows="true"
  22.             app:contentScrim="?attr/colorPrimary"
  23.             app:layout_scrollFlags="scroll|exitUntilCollapsed">
  24.  
  25.             <android.support.v7.widget.Toolbar
  26.                 android:id="@+id/toolbar"
  27.                 android:layout_width="match_parent"
  28.                 android:layout_height="?attr/actionBarSize"
  29.                 app:layout_collapseMode="pin"
  30.                 app:popupTheme="@style/AppTheme.PopupOverlay" />
  31.  
  32.         </android.support.design.widget.CollapsingToolbarLayout>
  33.     </android.support.design.widget.AppBarLayout>
  34.  
  35.     <include layout="@layout/content_scrolling" />
  36.  
  37.     <android.support.design.widget.FloatingActionButton
  38.         android:id="@+id/fab"
  39.         android:layout_width="wrap_content"
  40.         android:layout_height="wrap_content"
  41.         android:layout_margin="@dimen/fab_margin"
  42.         app:layout_anchor="@id/app_bar"
  43.         app:layout_anchorGravity="bottom|end"
  44.         app:srcCompat="@android:drawable/ic_dialog_email" />
  45.  
  46. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement