public class BootstrapButton extends AwesomeTextView implements BootstrapSizeView, OutlineableView, RoundableView, ButtonModeView
AwesomeTextView.AnimationSpeedKEYKEYKEYKEYKEY| Constructor and Description |
|---|
BootstrapButton(Context context) |
BootstrapButton(Context context,
AttributeSet attrs) |
BootstrapButton(Context context,
AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
float |
getBootstrapSize()
Retrieves the scale factor that should be used to scale a view from its baseline size.
|
ButtonMode |
getButtonMode() |
boolean |
isMustBeSelected() |
boolean |
isRounded() |
boolean |
isShowOutline() |
void |
onRestoreInstanceState(Parcelable state) |
Parcelable |
onSaveInstanceState() |
boolean |
onTouchEvent(MotionEvent event) |
void |
setBootstrapSize(DefaultBootstrapSize bootstrapSize)
Convenience method that sets the scale factor using a default bootstrap size enum value.
|
void |
setBootstrapSize(float bootstrapSize)
Sets the scale factor that should be used to scale a view from its baseline size.
|
void |
setButtonMode(ButtonMode buttonMode)
Sets the selection mode the button should use
|
void |
setChecked(boolean checked) |
void |
setRounded(boolean rounded)
Sets whether the view should display rounded corners or not
|
void |
setShowOutline(boolean showOutline)
Sets whether the view should display itself as an outline or not.
|
protected void |
updateBootstrapState() |
getBootstrapBrand, getBootstrapText, setBootstrapBrand, setBootstrapText, setFontAwesomeIcon, setIcon, setMarkdownText, setText, setTypicon, startFlashing, startRotatepublic BootstrapButton(Context context)
public BootstrapButton(Context context,
AttributeSet attrs)
public BootstrapButton(Context context,
AttributeSet attrs,
int defStyle)
public Parcelable onSaveInstanceState()
onSaveInstanceState in class AwesomeTextViewpublic void onRestoreInstanceState(Parcelable state)
onRestoreInstanceState in class AwesomeTextViewprotected void updateBootstrapState()
updateBootstrapState in class AwesomeTextViewpublic boolean onTouchEvent(@NonNull
MotionEvent event)
public boolean isMustBeSelected()
public void setChecked(boolean checked)
public boolean isShowOutline()
isShowOutline in interface OutlineableViewpublic boolean isRounded()
isRounded in interface RoundableViewpublic void setShowOutline(boolean showOutline)
OutlineableViewsetShowOutline in interface OutlineableViewshowOutline - true to display as an outline, otherwise falsepublic void setRounded(boolean rounded)
RoundableViewsetRounded in interface RoundableViewrounded - whether the view should be rounded@NonNull public ButtonMode getButtonMode()
getButtonMode in interface ButtonModeViewpublic void setButtonMode(@NonNull
ButtonMode buttonMode)
ButtonModeViewsetButtonMode in interface ButtonModeViewbuttonMode - the selection modepublic float getBootstrapSize()
BootstrapSizeViewgetBootstrapSize in interface BootstrapSizeViewpublic void setBootstrapSize(DefaultBootstrapSize bootstrapSize)
BootstrapSizeViewsetBootstrapSize in interface BootstrapSizeViewbootstrapSize - a default scale factorpublic void setBootstrapSize(float bootstrapSize)
BootstrapSizeViewsetBootstrapSize in interface BootstrapSizeViewbootstrapSize - the scale factor