public class BootstrapEditText extends EditText implements BootstrapBrandView, RoundableView, BootstrapSizeView
KEY
KEY
KEY
Constructor and Description |
---|
BootstrapEditText(Context context) |
BootstrapEditText(Context context,
AttributeSet attrs) |
BootstrapEditText(Context context,
AttributeSet attrs,
int defStyle) |
Modifier and Type | Method and Description |
---|---|
BootstrapBrand |
getBootstrapBrand() |
float |
getBootstrapSize()
Retrieves the scale factor that should be used to scale a view from its baseline size.
|
boolean |
isRounded() |
void |
onRestoreInstanceState(Parcelable state) |
Parcelable |
onSaveInstanceState() |
void |
setBootstrapBrand(BootstrapBrand bootstrapBrand)
Changes the color of the view to match the given Bootstrap Brand
|
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 |
setRounded(boolean rounded)
Sets whether the view should display rounded corners or not
|
public BootstrapEditText(Context context)
public BootstrapEditText(Context context, AttributeSet attrs)
public BootstrapEditText(Context context, AttributeSet attrs, int defStyle)
public Parcelable onSaveInstanceState()
public void onRestoreInstanceState(Parcelable state)
public void setBootstrapBrand(@NonNull BootstrapBrand bootstrapBrand)
BootstrapBrandView
setBootstrapBrand
in interface BootstrapBrandView
bootstrapBrand
- the Bootstrap Brand@NonNull public BootstrapBrand getBootstrapBrand()
getBootstrapBrand
in interface BootstrapBrandView
public void setRounded(boolean rounded)
RoundableView
setRounded
in interface RoundableView
rounded
- whether the view should be roundedpublic boolean isRounded()
isRounded
in interface RoundableView
public float getBootstrapSize()
BootstrapSizeView
getBootstrapSize
in interface BootstrapSizeView
public void setBootstrapSize(float bootstrapSize)
BootstrapSizeView
setBootstrapSize
in interface BootstrapSizeView
bootstrapSize
- the scale factorpublic void setBootstrapSize(DefaultBootstrapSize bootstrapSize)
BootstrapSizeView
setBootstrapSize
in interface BootstrapSizeView
bootstrapSize
- a default scale factor