Debian Codegraph @

templates/activities/TabbedActivity/root/res/layout/app_bar_activity.xml.ftl

raw
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:tools="http://schemas.android.com/tools"
4 xmlns:app="http://schemas.android.com/apk/res-auto"
5 android:id="@+id/main_content"
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/appbar"
13 android:layout_width="match_parent"
14 android:layout_height="wrap_content"
15 android:paddingTop="@dimen/appbar_padding_top"
16 android:theme="@style/${themeNameAppBarOverlay}">
17
18 <android.support.v7.widget.Toolbar
19 android:id="@+id/toolbar"
20 android:layout_width="match_parent"
21 android:layout_height="?attr/actionBarSize"
22 android:background="?attr/colorPrimary"
23 app:popupTheme="@style/${themeNamePopupOverlay}"
24 app:layout_scrollFlags="scroll|enterAlways">
25
26 <#if features == 'spinner'>
27 <Spinner
28 android:id="@+id/spinner"
29 app:popupTheme="@style/${themeNamePopupOverlay}"
30 android:layout_width="wrap_content"
31 android:layout_height="wrap_content" />
32 </#if>
33 </android.support.v7.widget.Toolbar>
34
35 <#if features == 'tabs'>
36 <android.support.design.widget.TabLayout
37 android:id="@+id/tabs"
38 android:layout_width="match_parent"
39 android:layout_height="wrap_content" />
40
41 </#if>
42 </android.support.design.widget.AppBarLayout>
43
44 <${viewContainer}
45 android:id="@+id/container"
46 android:layout_width="match_parent"
47 android:layout_height="match_parent"
48 app:layout_behavior="@string/appbar_scrolling_view_behavior"/>
49
50 <android.support.design.widget.FloatingActionButton
51 android:id="@+id/fab"
52 android:layout_width="wrap_content"
53 android:layout_height="wrap_content"
54 android:layout_gravity="end|bottom"
55 android:layout_margin="@dimen/fab_margin"
56 app:srcCompat="@android:drawable/ic_dialog_email" />
57
58 </android.support.design.widget.CoordinatorLayout>