1. Android Application Development
Lecture 4: User Interface 101 A:
Input Controls & Events
1. UI: Overview
2. UI: Input Controls
a. Button
b. Text fields
c. Check box d. Radio button
e. Spinner
f. Toggle button
g. Pickers
3. UI: Input Events
Ahsanul Karim
karim.ahsanul@gmail.com
http://droidtraining.wordpress.com
2. Android User Interface 101
A Quick Overview
User Interface of an Android app is made of View and ViewGroup objects
3. Android User Interface
A Quick Overview
There are two important things: 1. Layouts and 2. Controls
1. Linear Layout
2. Relative Layout
3. Lists & Grids
[with adapters]
4. Table Layout
4. Android User Interface
A Quick Overview
There are two important things: 1. Layouts and 2. Controls
a. Button
b. Text fields
c. Check box
d. Radio button
e. Spinner
f. Toggle button
g. Pickers
5. Android User Interface
Today We’ll Discuss...
Control Type
Description
Related Classes
Button
to be pressed/clicked to perform some action
Button
Text field
For different text inputs with or without autocomplete suggestions
EditText
AutoCompleteTextView
Checkbox
An on/off switch that can be toggled by the user
CheckBox
Radio button
Similar to checkboxes, except that only one option
can be selected in the group.
RadioButton
RadioGroup
Toggle button
An on/off button with a light indicator
ToggleButton
Spinner
A drop-down list that allows users to select one value
from a set
Spinner
Pickers
DatePicker widget to enter the values for the date
DatePicker
(month, day, year) or a TimePicker widget to enter the TimePicker
values for a time (hour, minute, AM/PM)
Source: http://developer.android.com/guide/topics/ui/controls.html