Monday 12 January 2015

Controls

Common Controls

Control TypeDescriptionRelated Classes
ButtonA push-button that can be pressed, or clicked, by the user to perform an action.Button
Text fieldAn editable text field. You can use the AutoCompleteTextViewwidget to create a text entry widget that provides auto-complete suggestionsEditText,AutoCompleteTextView
CheckboxAn on/off switch that can be toggled by the user. You should use checkboxes when presenting users with a group of selectable options that are not mutually exclusive.CheckBox
Radio buttonSimilar to checkboxes, except that only one option can be selected in the group.RadioGroup
RadioButton
Toggle buttonAn on/off button with a light indicator.ToggleButton
SpinnerA drop-down list that allows users to select one value from a set.Spinner
PickersA dialog for users to select a single value for a set by using up/down buttons or via a swipe gesture. Use a DatePickercode> widget to enter the values for the date (month, day, year) or aTimePicker widget to enter the values for a time (hour, minute, AM/PM), which will be formatted automatically for the user's locale.DatePicker,TimePicker

No comments:

Post a Comment