Home | History | Annotate | Download | only in WearComplicationProvidersTestSuite
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!--
      3  Copyright 2017 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>WearComplicationProvidersTestSuite</name>
     19     <group>Wearable</group>
     20     <package>com.example.android.wearable.wear.wearcomplicationproviderstestsuite</package>
     21 
     22     <minSdk>18</minSdk>
     23     <targetSdkVersion>25</targetSdkVersion>
     24 
     25     <minSdkVersionWear>23</minSdkVersionWear>
     26     <compileSdkVersionWear>26</compileSdkVersionWear>
     27     <targetSdkVersionWear>26</targetSdkVersionWear>
     28 
     29     <wearable>
     30         <has_handheld_app>false</has_handheld_app>
     31     </wearable>
     32 
     33     <dependency_wearable>com.android.support:appcompat-v7:26.0.0</dependency_wearable>
     34 
     35     <strings>
     36         <intro>
     37 <![CDATA[
     38 Complication Test Suite is a set of complication providers that provide dummy data and it can be
     39 used to test how different types of complications render on a watch face.
     40 ]]>
     41         </intro>
     42     </strings>
     43 
     44     <template src="base-build" />
     45     <template src="Wear" />
     46     
     47     <metadata>
     48         <!-- Values: {DRAFT | PUBLISHED | INTERNAL | DEPRECATED | SUPERCEDED} -->
     49         <status>PUBLISHED</status>
     50         <!-- See http://go/sample-categories for details on the next 4 fields. -->
     51         <!-- Most samples just need to udpate the Categories field. This is a comma-
     52              seperated list of topic tags. Unlike the old category system, samples
     53              may have multiple categories, so feel free to add extras. Try to avoid
     54              simply tagging everything with "UI". :)-->
     55         <categories>Wearable</categories>
     56         <technologies>Android</technologies>
     57         <languages>Java</languages>
     58         <solutions>Mobile</solutions>
     59         <!-- Values: {BEGINNER | INTERMEDIATE | ADVANCED | EXPERT} -->
     60         <!-- Beginner is for "getting started" type content, or essential content.
     61              (e.g. "Hello World", activities, intents)
     62 
     63              Intermediate is for content that covers material a beginner doesn't need
     64              to know, but that a skilled developer is expected to know.
     65              (e.g. services, basic styles and theming, sync adapters)
     66 
     67              Advanced is for highly technical content geared towards experienced developers.
     68              (e.g. performance optimizations, custom views, bluetooth)
     69 
     70              Expert is reserved for highly technical or specialized content, and should
     71              be used sparingly. (e.g. VPN clients, SELinux, custom instrumentation runners) -->
     72         <level>INTERMEDIATE</level>
     73         <!-- Dimensions: 512x512, PNG fomrat -->
     74         <icon>screenshots/icon-web.png</icon>
     75         <!-- Path to screenshots. Use <img> tags for each. -->
     76         <screenshots>
     77             <img>screenshots/wear-1.png</img>
     78             <img>screenshots/wear-2.png</img>
     79         </screenshots>
     80         <!-- List of APIs that this sample should be cross-referenced under. Use <android>
     81         for fully-qualified Framework class names ("android:" namespace).
     82 
     83         Use <ext> for custom namespaces, if needed. See "Samples Index API" documentation
     84         for more details. -->
     85         <api_refs>
     86             <android>android.support.wearable.complications.ComplicationData</android>
     87             <android>android.support.wearable.complications.ComplicationManager</android>
     88             <android>android.support.wearable.complications.ComplicationProviderService</android>
     89             <android>android.support.wearable.complications.ComplicationText</android>
     90             <android>android.support.wearable.complications.ProviderUpdateRequester</android>
     91         </api_refs>
     92 
     93         <!-- 1-3 line description of the sample here.
     94 
     95             Avoid simply rearranging the sample's title. What does this sample actually
     96             accomplish, and how does it do it? -->
     97         <description>
     98 <![CDATA[
     99 Complication Test Suite is a set of complication providers that provide dummy data and it can be
    100 used to test how different types of complications render on a watch face.
    101 ]]>
    102         </description>
    103 
    104 
    105         <intro>
    106             <![CDATA[
    107 Steps for trying out the sample:
    108 * Compile and install the wearable app onto your Wear device or emulator (for Wear scenario).
    109 
    110 * This sample does not have a main Activity (just Services that provide the complication data).
    111 Therefore, you may see an error next to the 'Run' button. To fix, click on the
    112 "Wearable" dropdown next to the 'Run' button and select 'Edit Configurations'. Under the
    113 'Launch Options', change the 'Launch' field from 'Default APK' to 'Nothing' and save.
    114 
    115 This sample provides dummy data for testing the complications UI in your watch face. After
    116 selecting a type from your watch face configuration Activity, you can tap on the complications to
    117 see more options.
    118 
    119 The Wear app demonstrates the use of [ComplicationData][1], [ComplicationManager][2],
    120 [ComplicationProviderService][3], [ComplicationText][4], and [ProviderUpdateRequester][5].
    121 
    122 [1]: https://developer.android.com/reference/android/support/wearable/complications/ComplicationData.html
    123 [2]: https://developer.android.com/reference/android/support/wearable/complications/ComplicationManager.html
    124 [3]: https://developer.android.com/reference/android/support/wearable/complications/ComplicationProviderService.html
    125 [4]: https://developer.android.com/reference/android/support/wearable/complications/ComplicationText.html
    126 [5]: https://developer.android.com/reference/android/support/wearable/complications/ProviderUpdateRequester.html
    127 ]]>
    128         </intro>
    129     </metadata>
    130 </sample>
    131