SelectBox

SelectBoxes provide a quick way to select one value from a set. In the default state, a SelectBox shows its currently selected value. Touching the SelectBox displays a dropdown menu with all other available values, from which the user can select a new one.

The SelectBox API and Schema will be subject to change in future versions.

Examples

<SelectBox width="fill_parent" height="wrap_content" items="#{selectBoxItems}"
	onItemSelected="#{onItemSelected(index)}"/>

Attributes

Name Type Default Binding Description

Inherits all attributes from TextView and adds the following:

onItemSelected

expressionType

action

Method that is called, when the user selects an item. Use index or item as optional parameters.

onNothingSelected

expressionType

action

Method that is called, when the user select the empty field.

selectedIndex

unsigned int

input/output

Bindable index of the box


Parts of this documentation are a derivate of the Android Developer Documentation by Google used under CC-BY-2.5.

results matching ""

    No results matching ""