public class AboutPage
extends java.lang.Object
View that can be passed as the root view
in Fragment.onCreateView(LayoutInflater, ViewGroup, Bundle) or passed to the Activity.setContentView(View)
in an activity's Activity.onCreate(Bundle) method
To create a custom item in the about page, pass an instance of Element
to the addItem(Element) method.
Element| Constructor and Description |
|---|
AboutPage(android.content.Context context)
The AboutPage requires a context to perform it's functions.
|
| Modifier and Type | Method and Description |
|---|---|
AboutPage |
addEmail(java.lang.String email)
Convenience method for
addEmail(java.lang.String, java.lang.String) but with
a predefined title string |
AboutPage |
addEmail(java.lang.String email,
java.lang.String title)
Add a predefined Element that opens the users default email client with a new email to the
email address passed as parameter
|
AboutPage |
addFacebook(java.lang.String id)
Convenience method for
addFacebook(java.lang.String, java.lang.String) but with
a predefined title string |
AboutPage |
addFacebook(java.lang.String id,
java.lang.String title)
Add a predefined Element that the opens Facebook app with a deep link to the specified user id
If the Facebook application is not installed this will open a web page instead.
|
AboutPage |
addGitHub(java.lang.String id)
Convenience method for
addGitHub(String, String) but with
a predefined title string |
AboutPage |
addGitHub(java.lang.String id,
java.lang.String title)
Add a predefined Element that the opens the a browser and displays the specified GitHub
users profile page.
|
AboutPage |
addGroup(java.lang.String name)
Add a new group that will display a header in this AboutPage
|
AboutPage |
addInstagram(java.lang.String id)
Convenience method for
addInstagram(String, String) (String, String)} but with
a predefined title string |
AboutPage |
addInstagram(java.lang.String id,
java.lang.String title)
Add a predefined Element that the opens the Instagram app with a deep link to the
specified user id.
|
AboutPage |
addItem(Element element)
Add a custom
Element to this AboutPage |
AboutPage |
addPlayStore(java.lang.String id)
Convenience method for
addPlayStore(String, String) but with
a predefined title string |
AboutPage |
addPlayStore(java.lang.String id,
java.lang.String title)
Add a predefined Element that the opens the PlayStore app with a deep link to the
specified app application id.
|
AboutPage |
addTwitter(java.lang.String id)
Convenience method for
addTwitter(String, String) but with
a predefined title string |
AboutPage |
addTwitter(java.lang.String id,
java.lang.String title)
Add a predefined Element that the opens the Twitter app with a deep link to the specified user id
If the Twitter application is not installed this will open a web page instead.
|
AboutPage |
addWebsite(java.lang.String url)
Convenience method for
addWebsite(String, String) but with
a predefined title string |
AboutPage |
addWebsite(java.lang.String url,
java.lang.String title)
Add a predefined Element that the opens a browser and loads the specified URL
|
AboutPage |
addYoutube(java.lang.String id)
Convenience method for
addYoutube(String, String) but with
a predefined title string |
AboutPage |
addYoutube(java.lang.String id,
java.lang.String title)
Add a predefined Element that the opens the Youtube app with a deep link to the
specified channel id.
|
android.view.View |
create()
Create and inflate this AboutPage.
|
AboutPage |
isRTL(boolean value)
Turn on the RTL mode.
|
AboutPage |
setCustomFont(java.lang.String path)
Provide a valid path to a font here to use another font for the text inside this AboutPage
|
AboutPage |
setDescription(java.lang.CharSequence description) |
AboutPage |
setImage(int resource)
Set the header image to display in this AboutPage
|
public AboutPage(android.content.Context context)
Context.getApplicationContext() here.context - public AboutPage setCustomFont(java.lang.String path)
path - public AboutPage addEmail(java.lang.String email)
addEmail(java.lang.String, java.lang.String) but with
a predefined title stringemail - the email address to send topublic AboutPage addEmail(java.lang.String email, java.lang.String title)
email - the email address to send totitle - the title string to display on this itempublic AboutPage addFacebook(java.lang.String id)
addFacebook(java.lang.String, java.lang.String) but with
a predefined title stringid - the facebook id to displaypublic AboutPage addFacebook(java.lang.String id, java.lang.String title)
id - the id of the Facebook user to display in the Facebook apptitle - the title to display on this itempublic AboutPage addTwitter(java.lang.String id)
addTwitter(String, String) but with
a predefined title stringid - the Twitter id to displaypublic AboutPage addTwitter(java.lang.String id, java.lang.String title)
id - the id of the Twitter user to display in the Twitter apptitle - the title to display on this itempublic AboutPage addPlayStore(java.lang.String id)
addPlayStore(String, String) but with
a predefined title stringid - the package id of the app to displaypublic AboutPage addPlayStore(java.lang.String id, java.lang.String title)
id - the package id of the app to displaytitle - the title to display on this itempublic AboutPage addYoutube(java.lang.String id)
addYoutube(String, String) but with
a predefined title stringid - the id of the channel to deep link topublic AboutPage addYoutube(java.lang.String id, java.lang.String title)
If the Youtube app is not installed this will open the Youtube web page instead.
id - the id of the channel to deep link totitle - the title to display on this itempublic AboutPage addInstagram(java.lang.String id)
addInstagram(String, String) (String, String)} but with
a predefined title stringid - the id of the instagram user to deep link topublic AboutPage addInstagram(java.lang.String id, java.lang.String title)
If the Instagram app is not installed this will open the Intagram web page instead.
id - the user id to deep link totitle - the title to display on this itempublic AboutPage addGitHub(java.lang.String id)
addGitHub(String, String) but with
a predefined title stringid - the id of the GitHub user to displaypublic AboutPage addGitHub(java.lang.String id, java.lang.String title)
id - the GitHub user to link totitle - the title to display on this itempublic AboutPage addWebsite(java.lang.String url)
addWebsite(String, String) but with
a predefined title stringurl - the URL to open in a browserpublic AboutPage addWebsite(java.lang.String url, java.lang.String title)
url - the URL to open in a browsertitle - the title to display on this itempublic AboutPage addItem(Element element)
Element to this AboutPageelement - Elementpublic AboutPage setImage(int resource)
resource - the resource id of the image to displaypublic AboutPage addGroup(java.lang.String name)
A header will be displayed in the order it was added. For e.g:
new AboutPage(this)
.addItem(firstItem)
.addGroup("Header")
.addItem(secondItem)
.create();
Will display the following [First item] [Header] [Second item]
name - the title for this grouppublic AboutPage isRTL(boolean value)
value - public AboutPage setDescription(java.lang.CharSequence description)
public android.view.View create()
View of this AboutPage