blob: f00dd96b381ecf29d61a3ba1de6ce1c0c4d87395 [file] [log] [blame]
Chris Banesaca7a232015-01-28 17:07:48 +00001<?xml version="1.0" encoding="utf-8"?>
2<!--
3 Copyright (C) 2015 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
Kirill Grouchnikov1de399d2016-07-25 09:01:47 -040018<FrameLayout
19 xmlns:android="http://schemas.android.com/apk/res/android"
20 xmlns:app="http://schemas.android.com/apk/res-auto"
21 android:layout_width="match_parent"
22 android:layout_height="match_parent">
Chris Banesaca7a232015-01-28 17:07:48 +000023
24 <android.support.v7.widget.Toolbar
25 android:id="@+id/toolbar"
26 android:layout_height="wrap_content"
27 android:layout_width="match_parent"
28 android:minHeight="?attr/actionBarSize"
29 android:background="?attr/colorPrimaryDark"
30 android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
31 app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>
32
33 <LinearLayout
34 android:layout_width="match_parent"
35 android:layout_height="match_parent"
36 android:orientation="vertical"
37 android:gravity="center_vertical"
38 android:clipToPadding="true">
39
40 <TextView
41 android:layout_width="match_parent"
42 android:layout_height="wrap_content"
43 android:textAppearance="@style/TextAppearance.AppCompat.Title"
44 android:text="@string/fab_size_normal"
45 android:layout_margin="16dp"/>
46
47 <android.support.design.widget.FloatingActionButton
48 android:layout_height="wrap_content"
49 android:layout_width="wrap_content"
50 android:layout_margin="16dp"
Chris Banes013f1972015-12-14 15:17:36 +000051 android:src="@drawable/ic_add"
Chris Banesaca7a232015-01-28 17:07:48 +000052 android:clickable="true" />
53
54 <TextView
55 android:layout_width="match_parent"
56 android:layout_height="wrap_content"
57 android:layout_margin="16dp"
58 android:textAppearance="@style/TextAppearance.AppCompat.Title"
59 android:text="@string/fab_size_mini" />
60
61 <android.support.design.widget.FloatingActionButton
62 android:layout_height="wrap_content"
63 android:layout_width="wrap_content"
64 android:layout_margin="16dp"
Chris Banes013f1972015-12-14 15:17:36 +000065 android:src="@drawable/ic_add"
Chris Banesaca7a232015-01-28 17:07:48 +000066 android:clickable="true"
67 app:fabSize="mini" />
68
Alper Gundogdu993e7412017-08-24 12:47:31 +010069 <TextView
70 android:layout_width="match_parent"
71 android:layout_height="wrap_content"
72 android:layout_margin="16dp"
73 android:textAppearance="@style/TextAppearance.AppCompat.Title"
74 android:text="@string/fab_size_custom" />
75
76 <android.support.design.widget.FloatingActionButton
77 android:id="@+id/custom_fab"
78 android:layout_height="wrap_content"
79 android:layout_width="wrap_content"
80 android:layout_margin="16dp"
81 android:src="@drawable/ic_add"
82 android:clickable="true"
83 app:fabCustomSize="@dimen/custom_fab_size" />
Chris Banesaca7a232015-01-28 17:07:48 +000084 </LinearLayout>
85
86</FrameLayout>