1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright 2015 Google Inc. All rights reserved. 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>XYZTouristAttractions</name> 19 <group>Wearable</group> 20 <package>com.example.android.xyztouristattractions</package> 21 <minSdk>18</minSdk> 22 <targetSdkVersion>28</targetSdkVersion> 23 <targetSdkVersionWear>28</targetSdkVersionWear> 24 <minSdkVersionWear>23</minSdkVersionWear> 25 26 27 <wearable> 28 <has_handheld_app>true</has_handheld_app> 29 </wearable> 30 31 <androidX>true</androidX> 32 33 <dependency>com.google.maps.android:android-maps-utils:0.5</dependency> 34 <dependency>com.github.bumptech.glide:glide:3.7.0</dependency> 35 <dependency>androidx.appcompat:appcompat:1.0.2</dependency> 36 <dependency>androidx.legacy:legacy-support-v13:1.0.0</dependency> 37 <dependency>androidx.recyclerview:recyclerview:1.0.0</dependency> 38 <dependency>com.google.android.material:material:1.0.0</dependency> 39 40 <dependency>com.google.android.gms:play-services-maps:16.1.0</dependency> 41 <dependency>com.google.android.gms:play-services-location:16.0.0</dependency> 42 43 44 <dependency_shared>androidx.legacy:legacy-support-v13:1.0.0</dependency_shared> 45 <dependency_shared>com.google.android.gms:play-services-wearable:16.0.1</dependency_shared> 46 <dependency_shared>com.google.android.gms:play-services-maps:16.1.0</dependency_shared> 47 <dependency_shared>com.google.maps.android:android-maps-utils:0.5</dependency_shared> 48 49 50 <dependency_wearable>androidx.wear:wear:1.0.0</dependency_wearable> 51 <dependency_wearable>androidx.legacy:legacy-support-v13:1.0.0</dependency_wearable> 52 <dependency_wearable>com.google.android.gms:play-services-maps:16.1.0</dependency_wearable> 53 54 55 <strings> 56 <intro> 57<![CDATA[ 58This sample aims to be as close to a real world example of a mobile 59and Wear app combination as possible. It has a more refined design 60and also provides a practical example of how a mobile app would 61interact and communicate with its wear counterpart. 62 63The app itself is modeled after a hypothetical tourist attractions 64app that notifies the user when they are in close proximity to 65notable points of interest. 66 67The Wear component loads a full wearable app that shows images, 68summary information and provides quick actions for nearby tourist 69attractions in a GridViewPager UI component. 70]]> 71 </intro> 72 </strings> 73 74 <template src="base" /> 75 <template src="WearPlusShared"/> 76 77 <metadata> 78 <!-- Values: {DRAFT | PUBLISHED | INTERNAL | DEPRECATED | SUPERCEDED} --> 79 <status>DEPRECATED</status> 80 <!-- See http://go/sample-categories for details on the next 4 fields. --> 81 <categories>Wearable, Location, Notification</categories> 82 <technologies>Android</technologies> 83 <languages>Java</languages> 84 <solutions>Mobile</solutions> 85 <!-- Values: {BEGINNER | INTERMEDIATE | ADVANCED | EXPERT} --> 86 <level>INTERMEDIATE</level> 87 <!-- Dimensions: 512x512, PNG fomrat --> 88 <icon>screenshots/icon-web.png</icon> 89 <!-- Path to screenshots. Use <img> tags for each. --> 90 <screenshots> 91 <img>screenshots/composite-1.png</img> 92 </screenshots> 93 <!-- List of APIs that this sample should be cross-referenced under. Use <android> 94 for fully-qualified Framework class names ("android:" namespace). 95 96 Use <ext> for custom namespaces, if needed. See "Samples Index API" documentation 97 for more details. --> 98 <api_refs> 99 <android>android.support.v7.appcompat</android> 100 <android>android.support.v7.widget.RecyclerView</android> 101 <android>android.support.v7.widget.GridLayoutManager</android> 102 <android>android.support.v4.content.ContextCompat</android> 103 <android>android.support.v4.app.ActivityCompat</android> 104 <android>android.support.design.widget.FloatingActionButton</android> 105 <android>android.support.design.widget.CoordinatorLayout</android> 106 <android>com.google.android.gms.common.api.GoogleApiClient</android> 107 <android>com.google.android.gms.wearable.Wearable</android> 108 <android>com.google.android.gms.wearable.DataApi</android> 109 <android>com.google.android.gms.wearable.NodeApi</android> 110 <android>com.google.android.gms.wearable.WearableListenerService</android> 111 <android>com.google.android.gms.location.LocationServices.GeofencingApi</android> 112 <android>com.google.android.gms.location.LocationServices.FusedLocationApi</android> 113 <android>android.support.wearable.view.DismissOverlayView</android> 114 <android>android.support.wearable.view.DotsPageIndicator</android> 115 <android>android.support.wearable.view.GridViewPager</android> 116 <android>android.support.wearable.activity.ConfirmationActivity</android> 117 <android>android.support.wearable.view.CardFrame</android> 118 <android>android.support.wearable.view.CardScrollView</android> 119 <android>android.support.wearable.view.GridPagerAdapter</android> 120 <android>android.support.wearable.view.WatchViewStub</android> 121 <android>android.support.wearable.view.ActionPage</android> 122 </api_refs> 123 124 <description> 125 <![CDATA[ 126Sample moved to [github.com/android/wear-os][1]. 127 128[1]: https://github.com/android/wear-os 129]]> 130 </description> 131 132 <intro> 133 <![CDATA[ 134This repo and all Wear OS samples have been moved to [github.com/android/wear-os][1]. Please check out the code there. Thank you! 135 136[1]: https://github.com/android/wear-os 137]]> 138 </intro> 139 </metadata> 140</sample> 141