• Home
Name Date Size #Lines LOC

..--

.google/03-May-2024-1813

Application/03-May-2024-1,055427

gradle/wrapper/03-May-2024-76

screenshots/03-May-2024-

CONTRIB.mdD03-May-20241.6 KiB3627

CONTRIBUTING.mdD03-May-20241.5 KiB3627

LICENSED03-May-202411.1 KiB202169

NOTICED03-May-2024613 1611

README.mdD03-May-20242.6 KiB7049

build.gradleD03-May-202410 110

gradlewD03-May-20245 KiB165122

gradlew.batD03-May-20242.3 KiB9166

packaging.yamlD03-May-2024526 1610

settings.gradleD03-May-202422 21

README.md

1Android ActionBarCompat-ShareActionProvider Sample
2===================================
3
4This sample shows you how a provide a context-sensitive ShareActionProvider with
5ActionBarCompat, backwards compatible to API v7.
6
7Introduction
8------------
9
10The sample contains a [`ViewPager`][1] which displays content of differing types: image and
11text. When a new item is selected in the ViewPager, the [`ShareActionProvider`][2] is updated with
12a share intent specific to that content.
13
14This Activity extends from [`ActionBarActivity`][3], which provides all of the function
15necessary to display a compatible Action Bar on devices running Android v2.1+.
16
17[1]: http://developer.android.com/reference/android/support/v4/view/ViewPager.html
18[2]: http://developer.android.com/reference/android/widget/ShareActionProvider.html
19[3]: https://developer.android.com/reference/android/support/v7/app/ActionBarActivity.html
20
21Pre-requisites
22--------------
23
24- Android SDK v21
25- Android Build Tools v21.1.1
26- Android Support Repository
27
28Screenshots
29-------------
30
31<img src="screenshots/1-gridview.png" height="400" alt="Screenshot"/> <img src="screenshots/2-detail.png" height="400" alt="Screenshot"/>
32
33Getting Started
34---------------
35
36This sample uses the Gradle build system. To build this project, use the
37"gradlew build" command or use "Import Project" in Android Studio.
38
39Support
40-------
41
42- Google+ Community: https://plus.google.com/communities/105153134372062985968
43- Stack Overflow: http://stackoverflow.com/questions/tagged/android
44
45If you've found an error in this sample, please file an issue:
46https://github.com/googlesamples/android-ActionBarCompat-ShareActionProvider
47
48Patches are encouraged, and may be submitted by forking this project and
49submitting a pull request through GitHub. Please see CONTRIBUTING.md for more details.
50
51License
52-------
53
54Copyright 2014 The Android Open Source Project, Inc.
55
56Licensed to the Apache Software Foundation (ASF) under one or more contributor
57license agreements.  See the NOTICE file distributed with this work for
58additional information regarding copyright ownership.  The ASF licenses this
59file to you under the Apache License, Version 2.0 (the "License"); you may not
60use this file except in compliance with the License.  You may obtain a copy of
61the License at
62
63http://www.apache.org/licenses/LICENSE-2.0
64
65Unless required by applicable law or agreed to in writing, software
66distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
67WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
68License for the specific language governing permissions and limitations under
69the License.
70