java.lang.Object | |
↳ | com.urbanairship.iam.TextInfo.Builder |
Text info builder.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TextInfo.Builder |
addFontFamily(String font)
Adds a font family.
| ||||||||||
TextInfo.Builder |
addStyle(String style)
Adds a style.
| ||||||||||
TextInfo |
build()
Builds the text info.
| ||||||||||
TextInfo.Builder |
setAlignment(String alignment)
Sets the text alignment.
| ||||||||||
TextInfo.Builder |
setColor(int color)
Sets the text color.
| ||||||||||
TextInfo.Builder |
setDrawable(Context context, int drawable)
Sets the drawable to appear next to the text.
| ||||||||||
TextInfo.Builder |
setFontSize(float size)
Sets the font size.
| ||||||||||
TextInfo.Builder |
setText(String text)
Sets the text.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Adds a font family. The first font family found in the application's font resource directory will be used.
font | The font family. |
---|
Adds a style.
style | The text style. |
---|
Builds the text info.
IllegalArgumentException | If the text and label are missing. |
---|
Sets the text alignment.
alignment | The text alignment. |
---|
Sets the text color. Defaults to black.
color | The text color. |
---|
Sets the drawable to appear next to the text.
context | The application context |
---|---|
drawable | The drawable resource ID. |
Sets the font size. Defaults to 14sp.
size | The font size. |
---|
Sets the text.
text | The text. |
---|