View Code? Open in Web Editor
NEW
Projects of the book Head First Android Development
headfirstandroiddevelopment's Introduction
- Layouts
- RelativeLayout
- LinearLayout
- Orientation
- Hint
- Weight
- Gravity
- Layout Gravity
- GridLayout
- Column count
- layout_row
- layout_column
- column_spam
- ViewGroup
- View review
- TextView
- use
sp
(scale-independent pixels) to define textSize
- EditText
- Button
- ToggleButton
textOn
and textOff
onClick
- Switch
textOn
and textOff
onClick
- CheckBox
- RadioButton
- Spinner
- ImageView
- app/src/main/res/drawable - default folder
- Different images according to the device dpi
- android-ldpi
- mdpi
- hdpi
- etc
src
contentDescription
- ImageButton
- ScrollView | HorizontalScrollView
- This becomes the root element (put the properties of the layout)
- Toasts