Add this in your root build.gradle
file (not your module build.gradle
file):
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Add this to your module's build.gradle
file (make sure the version matches the JitPack badge above):
dependencies {
...
compile 'com.github.Shashank02051997:FancyAboutPage-Android:2.8'
}
This library allows to generate beautiful About Pages with less effort, it's fully customizable and supports opening specific intent
First of all, need add AboutPage to your xml layout.
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#FFFFFF">
<com.shashank.sony.fancyaboutpagelib.FancyAboutPage
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/fancyaboutpage">
<com.mikhaellopez.circularimageview.CircularImageView
android:layout_width="140dp"
android:layout_height="140dp"
android:layout_marginTop="180dp"
android:layout_alignParentRight="true"
android:layout_marginRight="10dp"
android:src="@drawable/yourprofileimg"
app:civ_border_color="#40FFFFFF"
app:civ_border_width="10dp"
android:id="@+id/circularImageView" />
</com.shashank.sony.fancyaboutpagelib.FancyAboutPage>
</RelativeLayout>
</ScrollView>
Second of all, intract with code in java.
FancyAboutPage fancyAboutPage=findViewById(R.id.fancyaboutpage);
//fancyAboutPage.setCoverTintColor(Color.BLUE); //Optional
fancyAboutPage.setCover(R.drawable.coverimg); //Pass your cover image
fancyAboutPage.setName("Shashank Singhal");
fancyAboutPage.setDescription("Google Certified Associate Android Developer | Android App, Game, Web and Software Developer.");
fancyAboutPage.setAppIcon(R.drawable.cakepop); //Pass your app icon image
fancyAboutPage.setAppName("Cake Pop Icon Pack");
fancyAboutPage.setVersionNameAsAppSubTitle("1.2.3");
fancyAboutPage.setAppDescription("Cake Pop Icon Pack is an icon pack which follows Google's Material Design language.\n\n" +
"This icon pack uses the material design color palette given by google. Every icon is handcrafted with attention to the smallest details!\n\n"+
"A fresh new take on Material Design iconography. Cake Pop offers unique, creative and vibrant icons. Spice up your phones home-screen by giving it a fresh and unique look with Polycon.");
fancyAboutPage.addEmailLink("[email protected]"); //Add your email id
fancyAboutPage.addFacebookLink("https://www.facebook.com/shashanksinghal02"); //Add your facebook address url
fancyAboutPage.addTwitterLink("https://twitter.com/shashank020597");
fancyAboutPage.addLinkedinLink("https://www.linkedin.com/in/shashank-singhal-a87729b5/");
fancyAboutPage.addGitHubLink("https://github.com/Shashank02051997");
Please click the image below to enlarge.
This project use this libraries ~ Thanks to them.
Please fork this repository and contribute back using pull requests.
Any contributions, large or small, major features, bug fixes, are welcomed and appreciated but will be thoroughly reviewed .
If this project help you reduce time to develop, you can give me a cup of coffee :)
Copyright 2018 Shashank Singhal
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 at
http://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.