public class BootstrapButton extends AwesomeTextView implements BootstrapSizeView, OutlineableView, RoundableView, ButtonModeView
AwesomeTextView.AnimationSpeed
KEY
KEY
KEY
KEY
KEY
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, startRotate
public BootstrapButton(Context context)
public BootstrapButton(Context context, AttributeSet attrs)
public BootstrapButton(Context context, AttributeSet attrs, int defStyle)
public Parcelable onSaveInstanceState()
onSaveInstanceState
in class AwesomeTextView
public void onRestoreInstanceState(Parcelable state)
onRestoreInstanceState
in class AwesomeTextView
protected void updateBootstrapState()
updateBootstrapState
in class AwesomeTextView
public boolean onTouchEvent(@NonNull MotionEvent event)
public boolean isMustBeSelected()
public void setChecked(boolean checked)
public boolean isShowOutline()
isShowOutline
in interface OutlineableView
public boolean isRounded()
isRounded
in interface RoundableView
public void setShowOutline(boolean showOutline)
OutlineableView
setShowOutline
in interface OutlineableView
showOutline
- true to display as an outline, otherwise falsepublic void setRounded(boolean rounded)
RoundableView
setRounded
in interface RoundableView
rounded
- whether the view should be rounded@NonNull public ButtonMode getButtonMode()
getButtonMode
in interface ButtonModeView
public void setButtonMode(@NonNull ButtonMode buttonMode)
ButtonModeView
setButtonMode
in interface ButtonModeView
buttonMode
- the selection modepublic float getBootstrapSize()
BootstrapSizeView
getBootstrapSize
in interface BootstrapSizeView
public void setBootstrapSize(DefaultBootstrapSize bootstrapSize)
BootstrapSizeView
setBootstrapSize
in interface BootstrapSizeView
bootstrapSize
- a default scale factorpublic void setBootstrapSize(float bootstrapSize)
BootstrapSizeView
setBootstrapSize
in interface BootstrapSizeView
bootstrapSize
- the scale factor