public class BootstrapLabel extends AwesomeTextView implements RoundableView, BootstrapHeadingView
AwesomeTextView.AnimationSpeed
KEY
KEY
KEY
KEY
Constructor and Description |
---|
BootstrapLabel(Context context) |
BootstrapLabel(Context context,
AttributeSet attrs) |
BootstrapLabel(Context context,
AttributeSet attrs,
int defStyle) |
Modifier and Type | Method and Description |
---|---|
BootstrapHeading |
getBootstrapHeading() |
boolean |
isRounded() |
void |
onRestoreInstanceState(Parcelable state) |
Parcelable |
onSaveInstanceState() |
protected void |
onSizeChanged(int w,
int h,
int oldw,
int oldh) |
void |
setBootstrapHeading(BootstrapHeading bootstrapHeading)
Sets this view to use the given Bootstrap Heading, changing its text size and padding
|
void |
setRounded(boolean rounded)
Sets whether the view should display rounded corners or not
|
void |
updateBootstrapState() |
getBootstrapBrand, getBootstrapText, setBootstrapBrand, setBootstrapText, setFontAwesomeIcon, setIcon, setMarkdownText, setText, setTypicon, startFlashing, startRotate
public BootstrapLabel(Context context)
public BootstrapLabel(Context context, AttributeSet attrs)
public BootstrapLabel(Context context, AttributeSet attrs, int defStyle)
public Parcelable onSaveInstanceState()
onSaveInstanceState
in class AwesomeTextView
public void onRestoreInstanceState(Parcelable state)
onRestoreInstanceState
in class AwesomeTextView
public void updateBootstrapState()
updateBootstrapState
in class AwesomeTextView
protected void onSizeChanged(int w, int h, int oldw, int oldh)
public void setRounded(boolean rounded)
RoundableView
setRounded
in interface RoundableView
rounded
- whether the view should be roundedpublic boolean isRounded()
isRounded
in interface RoundableView
public void setBootstrapHeading(@NonNull BootstrapHeading bootstrapHeading)
BootstrapHeadingView
setBootstrapHeading
in interface BootstrapHeadingView
bootstrapHeading
- the Bootstrap Heading@NonNull public BootstrapHeading getBootstrapHeading()
getBootstrapHeading
in interface BootstrapHeadingView