public class Element
extends java.lang.Object
AboutPage.addItem(mehdi.sakout.aboutpage.Element) to add your
custom items to the AboutPage. This class can be constructed in a builder pattern type fashion.| Constructor and Description |
|---|
Element() |
Element(java.lang.String title,
java.lang.Integer iconDrawable) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getAutoApplyIconTint() |
java.lang.Integer |
getGravity()
Get the gravity of the content of this Element
|
java.lang.Integer |
getIconDrawable()
Get the icon drawable for this Element that appears to the left of the title or to the
right of the title in RTL layout mode.
|
java.lang.Integer |
getIconNightTint()
Get the color resource identifier for this Elements icon when in night mode
|
java.lang.Integer |
getIconTint() |
android.content.Intent |
getIntent()
Get the intent to be used for when this Element
|
android.view.View.OnClickListener |
getOnClickListener()
Get the onClickListener for this Element
|
java.lang.String |
getTitle() |
java.lang.String |
getValue() |
Element |
setAutoApplyIconTint(java.lang.Boolean autoIconColor)
Automatically apply tint to this Elements icon.
|
Element |
setGravity(java.lang.Integer gravity)
Set the Gravity of the content for this Element
|
Element |
setIconDrawable(java.lang.Integer iconDrawable)
Set the icon drawable for this Element that appears to the left of the title or to the
right of the title in RTL layout mode.
|
Element |
setIconNightTint(java.lang.Integer colorNight)
Set the icon tint to be used for this Elements icon when in night mode.
|
Element |
setIconTint(java.lang.Integer color)
Set the color resource identifier for this Elements icon
|
Element |
setIntent(android.content.Intent intent)
Set the intent to pass to the
Context.startActivity(android.content.Intent) method when this item
is clicked. |
Element |
setOnClickListener(android.view.View.OnClickListener onClickListener)
Set the onClickListener for this Element.
|
Element |
setTitle(java.lang.String title)
Set the title for this Element
|
Element |
setValue(java.lang.String value) |
public Element()
public Element(java.lang.String title,
java.lang.Integer iconDrawable)
public android.view.View.OnClickListener getOnClickListener()
View.OnClickListenerpublic Element setOnClickListener(android.view.View.OnClickListener onClickListener)
setIntent(android.content.Intent) when both methods are usedonClickListener - View.OnClickListenerpublic java.lang.Integer getGravity()
Gravitypublic Element setGravity(java.lang.Integer gravity)
gravity - See Gravitypublic java.lang.String getTitle()
public Element setTitle(java.lang.String title)
title - the string value to setpublic java.lang.Integer getIconDrawable()
public Element setIconDrawable(java.lang.Integer iconDrawable)
iconDrawable - the icon drawable resource to setpublic java.lang.Integer getIconTint()
public Element setIconTint(java.lang.Integer color)
color - the color resource identifier to use for this Elementpublic java.lang.Integer getIconNightTint()
AppCompatDelegate#setDefaultNightMode(int)public Element setIconNightTint(java.lang.Integer colorNight)
colorNight - public java.lang.String getValue()
public Element setValue(java.lang.String value)
public android.content.Intent getIntent()
setIntent(android.content.Intent)public Element setIntent(android.content.Intent intent)
Context.startActivity(android.content.Intent) method when this item
is clicked. This method has lower priority than
setOnClickListener(android.view.View.OnClickListener)
when both are used.intent - the intent to be usedIntentpublic java.lang.Boolean getAutoApplyIconTint()
public Element setAutoApplyIconTint(java.lang.Boolean autoIconColor)
autoIconColor -