1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright 2018 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<shortcuts xmlns:android="http://schemas.android.com/apk/res/android"> 19 <shortcut 20 android:shortcutId="dummy_shortcut" 21 android:enabled="true" 22 android:icon="@mipmap/logo_avatar" 23 android:shortcutShortLabel="@string/dummy_shortcut_short_label" 24 android:shortcutLongLabel="@string/dummy_shortcut_long_label" 25 android:shortcutDisabledMessage="@string/dummy_shortcut_disabled_message"> 26 <intent 27 android:action="android.intent.action.VIEW" 28 android:targetPackage="androidx.sharetarget.testapp" 29 android:targetClass="androidx.sharetarget.testapp.TextConsumerActivity" /> 30 <categories android:name="android.shortcut.conversation" /> 31 </shortcut> 32 33 <share-target android:targetClass="androidx.sharetarget.testapp.TextConsumerActivity"> 34 <data android:mimeType="text/plain"/> 35 <category 36 android:name="androidx.sharetarget.testapp.category.TEXT_SHARE_TARGET"/> 37 </share-target> 38 39 <shortcut 40 android:shortcutId="dummy_shortcut2" 41 android:enabled="true" 42 android:icon="@mipmap/logo_avatar" 43 android:shortcutShortLabel="@string/dummy_shortcut_short_label2" 44 android:shortcutLongLabel="@string/dummy_shortcut_long_label2" 45 android:shortcutDisabledMessage="@string/dummy_shortcut_disabled_message2"> 46 <intent 47 android:action="android.intent.action.VIEW" 48 android:targetPackage="androidx.sharetarget.testapp" 49 android:targetClass="androidx.sharetarget.testapp.TextConsumerActivity" /> 50 <categories android:name="android.shortcut.conversation" /> 51 </shortcut> 52 53 <share-target android:targetClass="androidx.sharetarget.testapp.OtherTextConsumerActivity"> 54 <data android:mimeType="text/plain"/> 55 <category android:name="androidx.sharetarget.testapp.category.OTHER_TEXT_SHARE_TARGET"/> 56 </share-target> 57</shortcuts> 58 59