public static class HamButton.Builder extends BoomButtonWithTextBuilder<HamButton.Builder>
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
HamButton |
build(android.content.Context context)
Build ham button, don't use this method.
|
HamButton.Builder |
buttonCornerRadius(int buttonCornerRadius)
Set the corner-radius of button.
|
HamButton.Builder |
buttonHeight(int buttonHeight)
Set the height of boom-button, in pixel.
|
HamButton.Builder |
buttonWidth(int buttonWidth)
Set the width of boom-button, in pixel.
|
HamButton.Builder |
containsSubText(boolean containsSubText)
Whether the ham-button contains a sub text-view.
|
int |
getButtonHeight()
Get the height of boom-button
|
int |
getButtonWidth()
Get the width of boom-button.
|
HamButton.Builder |
subEllipsize(android.text.TextUtils.TruncateAt subEllipsize)
Set the ellipsize of the sub-text-view.
|
HamButton.Builder |
subHighlightedText(java.lang.String subHighlightedText)
Set the sub-text when boom-button is at highlighted-state.
|
HamButton.Builder |
subHighlightedTextColor(int subHighlightedTextColor)
Set the color of sub-text when boom-button is at highlighted-state.
|
HamButton.Builder |
subHighlightedTextColorRes(int subHighlightedTextColorRes)
Set the color of sub-text when boom-button is at highlighted-state.
|
HamButton.Builder |
subHighlightedTextRes(int subHighlightedTextRes)
Set the sub-text resource when boom-button is at highlighted-state.
|
HamButton.Builder |
subMaxLines(int subMaxLines)
Set the maximum of the lines of sub-text-view.
|
HamButton.Builder |
subNormalText(java.lang.String subNormalText)
Set the sub-text when boom-button is at normal-state.
|
HamButton.Builder |
subNormalTextColor(int subNormalTextColor)
Set the color of sub-text when boom-button is at normal-state.
|
HamButton.Builder |
subNormalTextColorRes(int subNormalTextColorRes)
Set the color of sub-text when boom-button is at normal-state.
|
HamButton.Builder |
subNormalTextRes(int subNormalTextRes)
Set the sub-text resource when boom-button is at normal-state.
|
HamButton.Builder |
subTextGravity(int subTextGravity)
Set the gravity of sub-text-view.
|
HamButton.Builder |
subTextPadding(android.graphics.Rect subTextPadding)
Set the padding of sub-text.
|
HamButton.Builder |
subTextRect(android.graphics.Rect subTextRect)
Set the rect of sub-text.
|
HamButton.Builder |
subTextSize(int subTextSize)
Set the text size of the sub-text-view.
|
HamButton.Builder |
subTypeface(android.graphics.Typeface subTypeface)
Set the typeface of the sub-text.
|
HamButton.Builder |
subUnableText(java.lang.String subUnableText)
Set the sub-text when boom-button is at unable-state.
|
HamButton.Builder |
subUnableTextColor(int subUnableTextColor)
Set the color of sub-text when boom-button is at unable-state.
|
HamButton.Builder |
subUnableTextColorRes(int subUnableTextColorRes)
Set the color of sub-text when boom-button is at unable-state.
|
HamButton.Builder |
subUnableTextRes(int subUnableTextRes)
Set the sub-text resource when boom-button is at unable-state.
|
ellipsize, highlightedText, highlightedTextColor, highlightedTextColorRes, highlightedTextRes, maxLines, normalText, normalTextColor, normalTextColorRes, normalTextRes, textGravity, textPadding, textRect, textSize, typeface, unableText, unableTextColor, unableTextColorRes, unableTextResbutton, 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 HamButton.Builder containsSubText(boolean containsSubText)
containsSubText - contains a sub text-view or notpublic HamButton.Builder subNormalText(java.lang.String subNormalText)
subNormalText - sub-textpublic HamButton.Builder subNormalTextRes(int subNormalTextRes)
subNormalTextRes - sub-text resourcepublic HamButton.Builder subHighlightedText(java.lang.String subHighlightedText)
subHighlightedText - sub-textpublic HamButton.Builder subHighlightedTextRes(int subHighlightedTextRes)
subHighlightedTextRes - sub-text resourcepublic HamButton.Builder subUnableText(java.lang.String subUnableText)
subUnableText - sub-textpublic HamButton.Builder subUnableTextRes(int subUnableTextRes)
subUnableTextRes - sub-text resourcepublic HamButton.Builder subNormalTextColor(int subNormalTextColor)
subNormalTextColor - color of sub-textpublic HamButton.Builder subNormalTextColorRes(int subNormalTextColorRes)
subNormalTextColorRes - color resource of sub-textpublic HamButton.Builder subHighlightedTextColor(int subHighlightedTextColor)
subHighlightedTextColor - color of sub-textpublic HamButton.Builder subHighlightedTextColorRes(int subHighlightedTextColorRes)
subHighlightedTextColorRes - color resource of sub-textpublic HamButton.Builder subUnableTextColor(int subUnableTextColor)
subUnableTextColor - color of sub-textpublic HamButton.Builder subUnableTextColorRes(int subUnableTextColorRes)
subUnableTextColorRes - color resource of sub-textpublic HamButton.Builder subTextRect(android.graphics.Rect subTextRect)
subTextRect - the sub-text rect, in pixel.public HamButton.Builder subTextPadding(android.graphics.Rect subTextPadding)
subTextPadding - the sub-text paddingpublic HamButton.Builder subTypeface(android.graphics.Typeface subTypeface)
subTypeface - typefacepublic HamButton.Builder subMaxLines(int subMaxLines)
subMaxLines - maximum linespublic HamButton.Builder subTextGravity(int subTextGravity)
subTextGravity - gravity, for example, Gravity.CENTERpublic HamButton.Builder subEllipsize(android.text.TextUtils.TruncateAt subEllipsize)
subEllipsize - ellipsizepublic HamButton.Builder subTextSize(int subTextSize)
subTextSize - size of sub-text, in sppublic HamButton.Builder buttonWidth(int buttonWidth)
buttonWidth - width of buttonpublic HamButton.Builder buttonHeight(int buttonHeight)
buttonHeight - height of buttonpublic HamButton.Builder buttonCornerRadius(int buttonCornerRadius)
buttonCornerRadius - corner-radius of buttonpublic int getButtonWidth()
public int getButtonHeight()
public HamButton build(android.content.Context context)
build 在类中 BoomButtonBuilder<HamButton.Builder>context - the context