Lecture 4 User Interface 101

895 views

Published on

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
895
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
72
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Lecture 4 User Interface 101

  1. 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. 2. Android User Interface 101 A Quick Overview User Interface of an Android app is made of View and ViewGroup objects
  3. 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. 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. 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
  6. 6. Android User Interface Questions... Man who waits for roast duck to fly into mouth must wait very, very long time. -Chinese Proverb

×