Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/saschpe/android-social-fragment
A reusable fragment to display links to social networks, the Play Store as well as recommendation and support email links
https://github.com/saschpe/android-social-fragment
android android-development email facebook fragment google-plus social-network twitter
Last synced: 24 days ago
JSON representation
A reusable fragment to display links to social networks, the Play Store as well as recommendation and support email links
- Host: GitHub
- URL: https://github.com/saschpe/android-social-fragment
- Owner: saschpe
- License: apache-2.0
- Created: 2017-08-29T20:59:25.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T09:54:06.000Z (over 3 years ago)
- Last Synced: 2024-09-30T13:42:41.506Z (about 1 month ago)
- Topics: android, android-development, email, facebook, fragment, google-plus, social-network, twitter
- Language: Java
- Size: 4.97 MB
- Stars: 13
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Android Social Fragment
![Maven Central](https://img.shields.io/maven-central/v/de.peilicke.sascha/android-social-fragment)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Android%20SocialFragment-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/5872)
[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
[![Build Status](https://travis-ci.org/saschpe/android-social-fragment.svg?branch=master)](https://travis-ci.org/saschpe/android-social-fragment)A reusable fragment to display links to social networks, the Play Store as well
as recommendation and support email links. The fragment tries to open installed
apps on the user's device first and resorts to the web browser otherwise.# Usage
Use the **SocialFragment.Builder** class to set up a new **SocialFragment**.
Only the values provided will appear.```java
// Set up social fragment
SocialFragment fragment = new SocialFragment.Builder()
// Mandatory
.setApplicationId(BuildConfig.APPLICATION_ID)
// Optional
.setApplicationName(getString(R.string.app_name))
.setContactEmailAddress("[email protected]")
.setFacebookGroup("466079123741258")
.setGooglePlusGroup("116602691405798233571")
.setTwitterProfile("saschpe")
// Visual customization
.setHeaderTextColor(R.color.accent)
.build();// Attach it to the parent activity
getSupportFragmentManager().beginTransaction()
.add(R.id.fragment_placeholder,fragment)
.commit();
```# Screenshots
# Download
Artifacts are published to [Maven Central][maven-central]:
```kotlin
repositories {
mavenCentral()
}dependencies {
implementation("de.peilicke.sascha:android-social-fragment:2.1.1")
}
```# In use by
* [Alpha+ Player](https://play.google.com/store/apps/details?id=saschpe.alphaplus)
* [Birthday Calendar](https://play.google.com/store/apps/details?id=saschpe.contactevents) - Open Source on [Github](https://github.com/saschpe/BirthdayCalendar/)
* [Planning Poker](https://play.google.com/store/apps/details?id=saschpe.poker) - Open Source on [Github](https://github.com/saschpe/PlanningPoker)# License
Copyright 2017 Sascha Peilicke
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 athttp://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.[maven-central]: https://search.maven.org/artifact/de.peilicke.sascha/android-social-fragment