public class BootstrapDropDown extends AwesomeTextView implements RoundableView, OutlineableView
| Modifier and Type | Class and Description |
|---|---|
static interface |
BootstrapDropDown.OnDropDownItemClickListener
A listener which provides methods relating to
BootstrapDropDown |
AwesomeTextView.AnimationSpeedKEYKEYKEYKEY| Constructor and Description |
|---|
BootstrapDropDown(Context context) |
BootstrapDropDown(Context context,
AttributeSet attrs) |
BootstrapDropDown(Context context,
AttributeSet attrs,
int defStyle) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getDropdownData()
Retrieves the data used to populate the dropdown.
|
ExpandDirection |
getExpandDirection()
Gets the direction in which the dropdown expands.
|
boolean |
isRounded() |
boolean |
isShowOutline() |
void |
onClick(View v) |
void |
onDismiss() |
void |
onRestoreInstanceState(Parcelable state) |
Parcelable |
onSaveInstanceState() |
void |
setDropdownData(java.lang.String[] dropdownData)
Sets the String values which should be used to populate the menu displayed in the dropdown.
|
void |
setExpandDirection(ExpandDirection expandDirection)
Sets the direction in which the dropdown should expand.
|
void |
setOnClickListener(OnClickListener clickListener) |
void |
setOnDropDownItemClickListener(BootstrapDropDown.OnDropDownItemClickListener onDropDownItemClickListener)
Sets a listener which will be called when an item is clicked in the dropdown.
|
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.
|
getBootstrapBrand, getBootstrapText, setBootstrapBrand, setBootstrapText, setFontAwesomeIcon, setIcon, setMarkdownText, setText, setTypicon, startFlashing, startRotate, updateBootstrapStatepublic BootstrapDropDown(Context context)
public BootstrapDropDown(Context context,
AttributeSet attrs)
public BootstrapDropDown(Context context,
AttributeSet attrs,
int defStyle)
public void setOnDropDownItemClickListener(BootstrapDropDown.OnDropDownItemClickListener onDropDownItemClickListener)
onDropDownItemClickListener - the listenerpublic boolean isShowOutline()
isShowOutline in interface OutlineableViewpublic boolean isRounded()
isRounded in interface RoundableViewpublic ExpandDirection getExpandDirection()
public java.lang.String[] getDropdownData()
public void setShowOutline(boolean showOutline)
OutlineableViewsetShowOutline in interface OutlineableViewshowOutline - true to display as an outline, otherwise falsepublic void setRounded(boolean rounded)
RoundableViewsetRounded in interface RoundableViewrounded - whether the view should be roundedpublic void setExpandDirection(ExpandDirection expandDirection)
expandDirection - the directionpublic void setDropdownData(java.lang.String[] dropdownData)
dropdownData - an array of string values.public void onDismiss()
public void onClick(View v)
public Parcelable onSaveInstanceState()
onSaveInstanceState in class AwesomeTextViewpublic void onRestoreInstanceState(Parcelable state)
onRestoreInstanceState in class AwesomeTextViewpublic void setOnClickListener(OnClickListener clickListener)