1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 Copyright 2013 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>ActionBarCompat-ShareActionProvider</name> 19 <group>UI</group> 20 <package>com.example.android.actionbarcompat.shareactionprovider</package> 21 22 <minSdk>7</minSdk> 23 24 <strings> 25 <intro> 26 <![CDATA[ 27 This sample shows you how a provide a context-sensitive ShareActionProvider with 28 ActionBarCompat, backwards compatible to API v7. 29 ]]> 30 </intro> 31 </strings> 32 33 <template src="base"/> 34 35 <metadata> 36 <status>PUBLISHED</status> 37 <categories>UI, ActionBar</categories> 38 <technologies>Android</technologies> 39 <languages>Java</languages> 40 <solutions>Mobile</solutions> 41 <level>ADVANCED</level> 42 <icon>screenshots/icon-web.png</icon> 43 <screenshots> 44 <img>screenshots/1-image.png</img> 45 <img>screenshots/2-text.png</img> 46 </screenshots> 47 <api_refs> 48 <android>android.support.v7.widget.ShareActionProvider</android> 49 <android>android.support.v7.app.ActionBarActivity</android> 50 </api_refs> 51 <description> 52 <![CDATA[ 53 This sample shows you how a provide a context-sensitive ShareActionProvider with 54 ActionBarCompat, backwards compatible to API v7. 55 ]]> 56 </description> 57 <intro> 58 <![CDATA[ 59 The sample contains a [`ViewPager`][1] which displays content of differing types: image and 60 text. When a new item is selected in the ViewPager, the [`ShareActionProvider`][2] is updated with 61 a share intent specific to that content. 62 63 This Activity extends from [`ActionBarActivity`][3], which provides all of the function 64 necessary to display a compatible Action Bar on devices running Android v2.1+. 65 66 [1]: http://developer.android.com/reference/android/support/v4/view/ViewPager.html 67 [2]: http://developer.android.com/reference/android/widget/ShareActionProvider.html 68 [3]: https://developer.android.com/reference/android/support/v7/app/ActionBarActivity.html 69 ]]> 70 </intro> 71 </metadata> 72 </sample> 73