1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright 2014, 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<sample>
18    <name>FloatingActionButtonBasic</name>
19    <group>UI</group>
20    <package>com.example.android.floatingactionbuttonbasic</package>
21    <minSdk>21</minSdk>
22
23    <strings>
24        <intro>
25            <![CDATA[
26            This sample shows the two sizes of Floating Action Buttons and how to interact with
27            them.
28            ]]>
29        </intro>
30    </strings>
31
32    <template src="base"/>
33    <template src="FragmentView"/>
34    <common src="logger"/>
35    <common src="activities"/>
36    <metadata>
37        <status>PUBLISHED</status>
38        <categories>Getting Started, UI</categories>
39        <technologies>Android</technologies>
40        <languages>Java</languages>
41        <solutions>Mobile</solutions>
42        <level>BEGINNER</level>
43        <icon>screenshots/big_icon.png</icon>
44        <screenshots>
45            <img>screenshots/screenshot1.png</img>
46            <img>screenshots/screenshot2.png</img>
47            <img>screenshots/screenshot3.png</img>
48            <img>screenshots/screenshot4.png</img>
49            <img>screenshots/screenshot5.png</img>
50        </screenshots>
51        <api_refs>
52            <android>android.graphics.Outline</android>
53            <android>android.view.ViewOutlineProvider</android>
54            <android>android.widget.Checkable</android>
55        </api_refs>
56        <description>
57<![CDATA[
58This sample shows the two sizes of Floating Action Buttons and
59how to interact with them.
60]]>
61        </description>
62
63        <intro>
64<![CDATA[
65This sample shows how to implement a [Checkable][1] Floating Action Button.
66
67Floating action buttons are used for a special type of promoted action.
68They are distinguished by a circled icon floating above the UI and have
69special motion behaviors related to morphing, launching, and the transferring anchor point.
70
71Floating action buttons come in two sizes:
72the default, which should be used in most cases, and the mini,
73which should only be used to create visual continuity with other elements on the screen.
74
75Both sizes of Floating Action Buttons are displayed on screen.
76
77[1]: https://developer.android.com/reference/android/widget/Checkable.html
78]]>
79        </intro>
80    </metadata>
81</sample>
82