{"id":15068653,"url":"https://github.com/saschpe/android-social-fragment","last_synced_at":"2025-06-11T06:07:02.506Z","repository":{"id":51391332,"uuid":"101806388","full_name":"saschpe/android-social-fragment","owner":"saschpe","description":"A reusable fragment to display links to social networks, the Play Store as well as recommendation and support email links","archived":false,"fork":false,"pushed_at":"2021-05-12T09:54:06.000Z","size":5216,"stargazers_count":13,"open_issues_count":0,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T17:58:30.917Z","etag":null,"topics":["android","android-development","email","facebook","fragment","google-plus","social-network","twitter"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saschpe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-29T20:59:25.000Z","updated_at":"2021-12-12T21:41:53.000Z","dependencies_parsed_at":"2022-09-26T22:01:37.819Z","dependency_job_id":null,"html_url":"https://github.com/saschpe/android-social-fragment","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschpe%2Fandroid-social-fragment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschpe%2Fandroid-social-fragment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschpe%2Fandroid-social-fragment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschpe%2Fandroid-social-fragment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saschpe","download_url":"https://codeload.github.com/saschpe/android-social-fragment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschpe%2Fandroid-social-fragment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259211835,"owners_count":22822378,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-development","email","facebook","fragment","google-plus","social-network","twitter"],"created_at":"2024-09-25T01:38:43.937Z","updated_at":"2025-06-11T06:07:02.484Z","avatar_url":"https://github.com/saschpe.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Android Social Fragment\n![Maven Central](https://img.shields.io/maven-central/v/de.peilicke.sascha/android-social-fragment)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Android%20SocialFragment-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/5872)\n[![License](http://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)\n[![Build Status](https://travis-ci.org/saschpe/android-social-fragment.svg?branch=master)](https://travis-ci.org/saschpe/android-social-fragment)\n\u003ca href=\"http://www.methodscount.com/?lib=saschpe.android%3Asocial-fragment%3A2.0.1\"\u003e\u003cimg src=\"https://img.shields.io/badge/Methods and size-core: 100 | deps: 19640 | 25 KB-e91e63.svg\"/\u003e\u003c/a\u003e\n\nA reusable fragment to display links to social networks, the Play Store as well\nas recommendation and support email links. The fragment tries to open installed\napps on the user's device first and resorts to the web browser otherwise.\n\n# Usage\nUse the **SocialFragment.Builder** class to set up a new **SocialFragment**.\nOnly the values provided will appear.\n\n```java\n// Set up social fragment\nSocialFragment fragment =  new SocialFragment.Builder()\n    // Mandatory\n    .setApplicationId(BuildConfig.APPLICATION_ID)\n    // Optional\n    .setApplicationName(getString(R.string.app_name))\n    .setContactEmailAddress(\"saschpe@example.com\")\n    .setFacebookGroup(\"466079123741258\")\n    .setGooglePlusGroup(\"116602691405798233571\")\n    .setTwitterProfile(\"saschpe\")\n    // Visual customization\n    .setHeaderTextColor(R.color.accent)\n    .build();\n\n// Attach it to the parent activity\ngetSupportFragmentManager().beginTransaction()\n    .add(R.id.fragment_placeholder,fragment)\n    .commit();\n```\n\n# Screenshots\n\u003cimg alt=\"Screenshot 1\" src=\"assets/device-art/social-fragment-1.png\" width=\"256\" /\u003e\n\u003cimg alt=\"Screenshot 2\" src=\"assets/device-art/social-fragment-2.png\" width=\"256\" /\u003e\n\u003cimg alt=\"Screenshot 3\" src=\"assets/device-art/social-fragment-3.png\" width=\"256\" /\u003e\n\n# Download\nArtifacts are published to [Maven Central][maven-central]:\n```kotlin\nrepositories {\n    mavenCentral()\n}\n\ndependencies {\n    implementation(\"de.peilicke.sascha:android-social-fragment:2.1.1\")\n}\n```\n\n# In use by\n* [Alpha+ Player](https://play.google.com/store/apps/details?id=saschpe.alphaplus)\n* [Birthday Calendar](https://play.google.com/store/apps/details?id=saschpe.contactevents) - Open Source on [Github](https://github.com/saschpe/BirthdayCalendar/)\n* [Planning Poker](https://play.google.com/store/apps/details?id=saschpe.poker) - Open Source on [Github](https://github.com/saschpe/PlanningPoker)\n\n# License\n\n    Copyright 2017 Sascha Peilicke\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n\n[maven-central]: https://search.maven.org/artifact/de.peilicke.sascha/android-social-fragment\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaschpe%2Fandroid-social-fragment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaschpe%2Fandroid-social-fragment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaschpe%2Fandroid-social-fragment/lists"}