public class BootstrapButtonGroup extends LinearLayout implements BootstrapSizeView, OutlineableView, RoundableView, BootstrapBrandView, ButtonModeView
KEYKEYKEYKEY| 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()
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@NonNull public ButtonMode getButtonMode()
getButtonMode in interface ButtonModeViewpublic void setButtonMode(@NonNull
ButtonMode buttonMode)
ButtonModeViewsetButtonMode in interface ButtonModeViewbuttonMode - the selection modepublic void setBootstrapBrand(@NonNull
BootstrapBrand bootstrapBrand)
BootstrapBrandViewsetBootstrapBrand in interface BootstrapBrandViewbootstrapBrand - the Bootstrap Brand@NonNull public BootstrapBrand getBootstrapBrand()
getBootstrapBrand in interface BootstrapBrandViewpublic void setShowOutline(boolean showOutline)
OutlineableViewsetShowOutline in interface OutlineableViewshowOutline - true to display as an outline, otherwise falsepublic boolean isShowOutline()
isShowOutline in interface OutlineableViewpublic void setRounded(boolean rounded)
RoundableViewsetRounded in interface RoundableViewrounded - whether the view should be roundedpublic boolean isRounded()
isRounded in interface RoundableViewpublic 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()