1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright 2013 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>WatchViewStub</name>
19    <group>Wearable</group>
20    <package>com.example.android.google.wearable.watchviewstub</package>
21
22    <targetSdkVersionWear>22</targetSdkVersionWear>
23
24    <strings>
25        <intro>
26            <![CDATA[
27            This sample demonstrates how to specify different layouts for round and rectangular screens.
28            ]]>
29        </intro>
30    </strings>
31    <template src="base-build"/>
32    <template src="Wear"/>
33    <metadata>
34        <status>PUBLISHED</status>
35        <categories>Wearable</categories>
36        <technologies>Android</technologies>
37        <languages>Java</languages>
38        <solutions>Mobile</solutions>
39        <level>INTERMEDIATE</level>
40        <icon>Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png</icon>
41        <screenshots>
42            <img>screenshots/watch_view_stub_rectangular.png</img>
43            <img>screenshots/watch_view_stub_round.png</img>
44        </screenshots>
45        <api_refs>
46            <android>android.support.wearable.view.WatchViewStub</android>
47            <android>android.support.wearable.view.WatchViewStub.OnLayoutInflatedListener</android>
48        </api_refs>
49        <description>
50<![CDATA[
51This sample demonstrates how to specify different layouts for round and rectangular screens.
52]]>
53        </description>
54        <intro>
55<![CDATA[
56It is a basic sample that displays a round layout on a round watch and a rectangular one on a
57rectangular watch.
58
59The corresponding layout is being inflated by the system. This sample shows a way to handle
60this programatically by using a `WatchViewStub.OnLayoutInflateListener`.
61]]>
62        </intro>
63    </metadata>
64</sample>
65