You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
3.5 KiB
90 lines
3.5 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Copyright 2013 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
|
|
|
|
<sample>
|
|
<name>Notifications</name>
|
|
<group>Wearable</group>
|
|
<package>com.example.android.support.wearable.notifications</package>
|
|
|
|
<minSdk>18</minSdk>
|
|
<targetSdkVersion>27</targetSdkVersion>
|
|
|
|
<minSdkVersionWear>23</minSdkVersionWear>
|
|
<compileSdkVersionWear>26</compileSdkVersionWear>
|
|
<targetSdkVersionWear>26</targetSdkVersionWear>
|
|
|
|
<wearable>
|
|
<has_handheld_app>true</has_handheld_app>
|
|
</wearable>
|
|
|
|
<dependency>com.android.support.constraint:constraint-layout:1.0.2</dependency>
|
|
|
|
<strings>
|
|
<intro>
|
|
<![CDATA[
|
|
This sample application provides a showcase of available notification styles and
|
|
demonstrates various features of the Wear notifications API. Running the sample on your
|
|
companion allows you to select between various notification styles and to see how these
|
|
notifications are displayed, both in a phone\'s notification shade and on the wearable.
|
|
]]>
|
|
</intro>
|
|
</strings>
|
|
|
|
<template src="base"/>
|
|
<template src="Wear"/>
|
|
<metadata>
|
|
<status>PUBLISHED</status>
|
|
<categories>Wearable</categories>
|
|
<technologies>Android</technologies>
|
|
<languages>Java</languages>
|
|
<solutions>Mobile</solutions>
|
|
<level>INTERMEDIATE</level>
|
|
<icon>screenshots/ic_launcher.png</icon>
|
|
<screenshots>
|
|
<img>screenshots/companion-content-action.png</img>
|
|
<img>screenshots/content-action</img>
|
|
<img>screenshots/content-icon-menu</img>
|
|
</screenshots>
|
|
<api_refs>
|
|
<android>android.app.Notification</android>
|
|
<android>android.support.v4.app.NotificationCompat</android>
|
|
<android>android.support.v4.app.NotificationManagerCompat</android>
|
|
<android>android.support.v4.app.RemoteInput</android>
|
|
<android>android.support.wearable.view.WearableListView</android>
|
|
</api_refs>
|
|
<description>
|
|
This sample showcases the available notification styles on a device and wearable.
|
|
</description>
|
|
<intro>
|
|
This sample app enables the user to choose a notification type (the selection is done on the phone),
|
|
which it then displays on the phone and wearable. The notification is built using
|
|
[NotificationCompat.Builder][1] and [NotificationCompat.WearableExtender][2].
|
|
|
|
See [Creating a Notification][3] for all the details on how to create a notification with wearable features.
|
|
|
|
On the wearable side, the sample also shows how to create a custom layout using [WearableListView][4].
|
|
|
|
[1]: http://developer.android.com/reference/android/support/v4/app/NotificationCompat.Builder.html
|
|
[2]: https://developer.android.com/reference/android/support/v4/app/NotificationCompat.WearableExtender.html
|
|
[3]: https://developer.android.com/training/wearables/notifications/creating.html
|
|
[4]: https://developer.android.com/training/wearables/apps/layouts.html#UiLibrary
|
|
</intro>
|
|
</metadata>
|
|
</sample>
|