Create an awesome About Page for your Android App in 2 minutes
Create an awesome About Page for your Android App in 2 minutes
This library allows to generate beautiful About Pages with less effort, it's fully customizable and supports opening specific intent
View aboutPage = new AboutPage(this) .isRTL(false) .enableDarkMode(false) .setCustomFont(String) // or Typeface .setImage(R.drawable.dummy_image) .addItem(versionElement) .addItem(adsElement) .addGroup("Connect with us") .addEmail("[email protected]") .addWebsite("https://mehdisakout.com/") .addFacebook("the.medy") .addTwitter("medyo80") .addYoutube("UCdPQtdWIsg7_pi4mrRu46vA") .addPlayStore("com.ideashower.readitlater.pro") .addGitHub("medyo") .addInstagram("medyo80") .create();
Available on Jcenter, Maven and JitPack
implementation 'com.github.medyo:android-about-page:1.3.1'
setDescription(String)
setImage(Int)
The library has already some predefined social networks like :
addFacebook(String PageID) addTwitter(String AccountID) addYoutube(String AccountID) addPlayStore(String PackageName) addInstagram(String AccountID) addGitHub(String AccountID)
For example
app version:
Element versionElement = new Element(); versionElement.setTitle("Version 6.2"); addItem(versionElement)
| Function | Description | | ------------- |:-------------:| | setTitle(String) | Set title of the element| | setIconTint(Int) | Set color of the element| | setSkipTint(Boolean) | Skip tinting the icon (useful when using non vector drawables)| | setIconDrawable(Int) | Set icon of the element| | setValue(String) | Set Element value like Facebook ID| | setIntent(Intent) | Set an intent to be called on
onClickListener| | setGravity(Gravity) | Set a Gravity for the element | | setOnClickListener(View.OnClickListener) | If
intentisn't suitable for you need, implement your custom behaviour by overriding the click listener|
@Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { return new AboutPage(getContext()) .isRTL(false) .setDescription(getString(R.string.app_description)) .addGroup(getString(R.string.contact_group)) .addEmail("[email protected]", "Email") .addGroup(getString(R.string.application_information_group)) .addItem(new VersionElement()) .create(); }
snippet by nrhoffmann
View aboutPage = new AboutPage(this) .enableDarkMode(false) // if true, the dark mode is forced otherwise the default light one .create()
The library does supports the following languages :
Please make a Pull request to add a new language.
Nothing to include
The MIT License (MIT) Copyright (c) 2016 Mehdi SakoutPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.