public abstract class BoomButtonWithTextBuilder<T> extends BoomButtonBuilder<T>
| 构造器和说明 |
|---|
BoomButtonWithTextBuilder() |
| 限定符和类型 | 方法和说明 |
|---|---|
T |
ellipsize(android.text.TextUtils.TruncateAt ellipsize)
Set the ellipsize of the text-view.
|
T |
highlightedText(java.lang.String highlightedText)
Set the text when boom-button is at highlighted-state.
|
T |
highlightedTextColor(int highlightedTextColor)
Set the color of text when boom-button is at highlighted-state.
|
T |
highlightedTextColorRes(int highlightedTextColorRes)
Set the color of text when boom-button is at highlighted-state.
|
T |
highlightedTextRes(int highlightedTextRes)
Set the text resource when boom-button is at highlighted-state.
|
T |
maxLines(int maxLines)
Set the maximum of the lines of text-view.
|
T |
normalText(java.lang.String normalText)
Set the text when boom-button is at normal-state.
|
T |
normalTextColor(int normalTextColor)
Set the color of text when boom-button is at normal-state.
|
T |
normalTextColorRes(int normalTextColorRes)
Set the color of text when boom-button is at normal-state.
|
T |
normalTextRes(int normalTextRes)
Set the text resource when boom-button is at normal-state.
|
T |
textGravity(int gravity)
Set the gravity of text-view.
|
T |
textPadding(android.graphics.Rect textPadding)
Set the padding of text.
|
T |
textRect(android.graphics.Rect textRect)
Set the rect of text.
|
T |
textSize(int textSize)
Set the text size of the text-view.
|
T |
typeface(android.graphics.Typeface typeface)
Set the typeface of the text.
|
T |
unableText(java.lang.String unableText)
Set the text when boom-button is at unable-state.
|
T |
unableTextColor(int unableTextColor)
Set the color of text when boom-button is at unable-state.
|
T |
unableTextColorRes(int unableTextColorRes)
Set the color of text when boom-button is at unable-state.
|
T |
unableTextRes(int unableTextRes)
Set the text resource when boom-button is at unable-state.
|
build, button, highlightedColor, highlightedColorRes, highlightedImageDrawable, highlightedImageRes, imagePadding, imageRect, index, innerListener, listener, normalColor, normalColorRes, normalImageDrawable, normalImageRes, piece, pieceColor, pieceColor, pieceColorRes, rippleEffect, rotateImage, setUnable, shadowColor, shadowCornerRadius, shadowEffect, shadowOffsetX, shadowOffsetY, shadowRadius, unable, unableColor, unableColorRes, unableImageDrawable, unableImageRespublic T normalText(java.lang.String normalText)
normalText - textpublic T normalTextRes(int normalTextRes)
normalTextRes - text resourcepublic T highlightedText(java.lang.String highlightedText)
highlightedText - textpublic T highlightedTextRes(int highlightedTextRes)
highlightedTextRes - text resourcepublic T unableText(java.lang.String unableText)
unableText - textpublic T unableTextRes(int unableTextRes)
unableTextRes - text resourcepublic T normalTextColor(int normalTextColor)
normalTextColor - color of textpublic T normalTextColorRes(int normalTextColorRes)
normalTextColorRes - color resource of textpublic T highlightedTextColor(int highlightedTextColor)
highlightedTextColor - color of textpublic T highlightedTextColorRes(int highlightedTextColorRes)
highlightedTextColorRes - color resource of textpublic T unableTextColor(int unableTextColor)
unableTextColor - color of textpublic T unableTextColorRes(int unableTextColorRes)
unableTextColorRes - color resource of textpublic T textRect(android.graphics.Rect textRect)
textRect - the text rect, in pixel.public T textPadding(android.graphics.Rect textPadding)
textPadding - the text paddingpublic T typeface(android.graphics.Typeface typeface)
typeface - typefacepublic T maxLines(int maxLines)
maxLines - maximum linespublic T textGravity(int gravity)
gravity - gravity, for example, Gravity.CENTERpublic T ellipsize(android.text.TextUtils.TruncateAt ellipsize)
ellipsize - ellipsizepublic T textSize(int textSize)
textSize - size of text, in sp