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 18 19 20<sample> 21 <name>WatchFace</name> 22 <group>Wearable</group> 23 <package>com.example.android.wearable.watchface</package> 24 25 <minSdk>18</minSdk> 26 <targetSdkVersion>23</targetSdkVersion> 27 <targetSdkVersionWear>23</targetSdkVersionWear> 28 29 <dependency>com.google.android.support:wearable:1.4.0</dependency> 30 <dependency>com.google.android.gms:play-services-fitness</dependency> 31 <dependency_wearable>com.android.support:palette-v7:23.3.0</dependency_wearable> 32 33 <preview_wearable_support_dependency>com.google.android.support:wearable:2.0.0-alpha1</preview_wearable_support_dependency> 34 <dependency_wearable>com.google.android.gms:play-services-fitness</dependency_wearable> 35 36 <wearable> 37 <has_handheld_app>true</has_handheld_app> 38 </wearable> 39 40 <strings> 41 <intro> 42 <![CDATA[ 43This sample demonstrates how to create watch faces for android wear and includes a phone app 44and a wearable app. The wearable app has a variety of watch faces including analog, digital, 45opengl, calendar, steps, interactive, etc. It also includes a watch-side configuration example. 46The phone app includes a phone-side configuration example. 47 48Additional note on Steps WatchFace Sample, if the user has not installed or setup the Google Fit app 49on their phone and their Wear device has not configured the Google Fit Wear App, then you may get 50zero steps until one of the two is setup. Please note, many Wear devices configure the Google Fit 51Wear App beforehand. 52 ]]> 53 </intro> 54 </strings> 55 56 <template src="base"/> 57 <template src="Wear"/> 58 59</sample> 60