public class BootstrapButtonGroup extends LinearLayout implements BootstrapSizeView, OutlineableView, RoundableView, BootstrapBrandView, ButtonModeView
KEY
KEY
KEY
KEY
Constructor and Description |
---|
BootstrapButtonGroup(Context context) |
BootstrapButtonGroup(Context context,
AttributeSet attrs) |
BootstrapButtonGroup(Context context,
AttributeSet attrs,
int defStyleAttr) |
Modifier and Type | Method and Description |
---|---|
void |
addView(View child) |
void |
addView(View child,
int index) |
void |
addView(View child,
int width,
int height) |
void |
addView(View child,
int index,
ViewGroup.LayoutParams params) |
void |
addView(View child,
ViewGroup.LayoutParams params) |
protected boolean |
addViewInLayout(View child,
int index,
ViewGroup.LayoutParams params) |
protected boolean |
addViewInLayout(View child,
int index,
ViewGroup.LayoutParams params,
boolean preventRequestLayout) |
void |
check(int id) |
BootstrapBrand |
getBootstrapBrand() |
float |
getBootstrapSize()
Retrieves the scale factor that should be used to scale a view from its baseline size.
|
ButtonMode |
getButtonMode() |
boolean |
isRounded() |
boolean |
isShowOutline() |
protected void |
onFinishInflate() |
void |
onRestoreInstanceState(Parcelable state) |
Parcelable |
onSaveInstanceState() |
void |
removeAllViews() |
void |
removeAllViewsInLayout() |
protected void |
removeDetachedView(View child,
boolean animate) |
void |
removeView(View view) |
void |
removeViewAt(int index) |
void |
removeViewInLayout(View view) |
void |
removeViews(int start,
int count) |
void |
removeViewsInLayout(int start,
int count) |
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 |
setButtonMode(ButtonMode buttonMode)
Sets the selection mode the button should use
|
void |
setOrientation(int orientation) |
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.
|
public BootstrapButtonGroup(Context context)
public BootstrapButtonGroup(Context context, AttributeSet attrs)
public BootstrapButtonGroup(Context context, AttributeSet attrs, int defStyleAttr)
public Parcelable onSaveInstanceState()
public void onRestoreInstanceState(Parcelable state)
public void check(@IdRes int id)
public 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@NonNull public ButtonMode getButtonMode()
getButtonMode
in interface ButtonModeView
public void setButtonMode(@NonNull ButtonMode buttonMode)
ButtonModeView
setButtonMode
in interface ButtonModeView
buttonMode
- the selection modepublic void setBootstrapBrand(@NonNull BootstrapBrand bootstrapBrand)
BootstrapBrandView
setBootstrapBrand
in interface BootstrapBrandView
bootstrapBrand
- the Bootstrap Brand@NonNull public BootstrapBrand getBootstrapBrand()
getBootstrapBrand
in interface BootstrapBrandView
public void setShowOutline(boolean showOutline)
OutlineableView
setShowOutline
in interface OutlineableView
showOutline
- true to display as an outline, otherwise falsepublic boolean isShowOutline()
isShowOutline
in interface OutlineableView
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 setOrientation(int orientation)
public void addView(@NonNull View child)
public void addView(@NonNull View child, int index)
public void addView(@NonNull View child, int index, ViewGroup.LayoutParams params)
public void addView(@NonNull View child, ViewGroup.LayoutParams params)
public void addView(@NonNull View child, int width, int height)
protected boolean addViewInLayout(@NonNull View child, int index, ViewGroup.LayoutParams params)
protected boolean addViewInLayout(@NonNull View child, int index, ViewGroup.LayoutParams params, boolean preventRequestLayout)
public void removeView(@NonNull View view)
protected void removeDetachedView(@NonNull View child, boolean animate)
public void removeAllViews()
public void removeAllViewsInLayout()
public void removeViewAt(int index)
public void removeViewInLayout(@NonNull View view)
public void removeViews(int start, int count)
public void removeViewsInLayout(int start, int count)
protected void onFinishInflate()