Debian Codegraph @

templates/activities/ScrollActivity/root/res/layout/app_bar.xml.ftl

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <android.support.design.widget.CoordinatorLayout
3 xmlns:android="http://schemas.android.com/apk/res/android"
4 xmlns:app="http://schemas.android.com/apk/res-auto"
5 xmlns:tools="http://schemas.android.com/tools"
6 android:layout_width="match_parent"
7 android:layout_height="match_parent"
8 android:fitsSystemWindows="true"
9 tools:context="${relativePackage}.${activityClass}">
10
11 <android.support.design.widget.AppBarLayout
12 android:id="@+id/app_bar"
13 android:fitsSystemWindows="true"
14 android:layout_height="@dimen/app_bar_height"
15 android:layout_width="match_parent"
16 android:theme="@style/${themeNameAppBarOverlay}">
17
18 <android.support.design.widget.CollapsingToolbarLayout
19 android:id="@+id/toolbar_layout"
20 android:fitsSystemWindows="true"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent"
23 app:layout_scrollFlags="scroll|exitUntilCollapsed"
24 app:contentScrim="?attr/colorPrimary">
25
26 <android.support.v7.widget.Toolbar
27 android:id="@+id/toolbar"
28 android:layout_height="?attr/actionBarSize"
29 android:layout_width="match_parent"
30 app:layout_collapseMode="pin"
31 app:popupTheme="@style/${themeNamePopupOverlay}" />
32
33 </android.support.design.widget.CollapsingToolbarLayout>
34 </android.support.design.widget.AppBarLayout>
35
36 <include layout="@layout/${simpleLayoutName}" />
37
38 <android.support.design.widget.FloatingActionButton
39 android:id="@+id/fab"
40 android:layout_width="wrap_content"
41 android:layout_height="wrap_content"
42 android:layout_margin="@dimen/fab_margin"
43 app:layout_anchor="@id/app_bar"
44 app:layout_anchorGravity="bottom|end"
45 app:srcCompat="@android:drawable/ic_dialog_email" />
46
47 </android.support.design.widget.CoordinatorLayout>