Flashcards
Mobile App Development - Lecture 3
Cards in this deck (20)
- 1Width and height of a widget can be:wrap_content
match_parent
A specific fixed value such as 64dp. - 2Measurement Unitspixel
density-independent pixel
scale-independent pixel
inches
millimeters - 3Density-Independent PixelDefining your GUIs with density-independent pixels enables the Android platform to scale the GUI, based on the pixel density of a given device’s screen
- 4Paddingextra space inside widget
you can artificially increase the widget's size by applying padding - 5Marginextra space outside widget to separate it from others
- 6Gravityalignment direction that widgets are pulled
sets the gravity of the contents of the View it's used on - 7Layout Gravitysets the gravity of the View or Layout relative to its parent
- 8Weightgives elements relative sizes by integers.
If widget sizes are the same, widget with weight K gets K/total fraction of total size. - 9ButtonThe Button is a clickable widget with a text label
- 10ToggleButtonThe ToggleButton widget allows the user to change a setting between two states (checked/not checked state).
- 11ImageButtonThe ImageButton is a clickable widget with an image.
- 12ImageViewThe ImageView widget displays an image without being clickable.
- 13TextViewThe TextView widget displays text to the user.
- 14EditTextThe EditText widget is an editable text input box.
- 15SpinnerThe Spinner widget is a drop-down menu of selectable choices.
- 16ListViewThe Listview widget is an ordered collection of selectable choices
ListViews don't work with the onClick event! - 17CheckBoxThe CheckBox widget is a specific type of two-states switch that can be either checked or unchecked.
- 18RadioButtonThe RadioButton widget is a toggleable on/off switch.
Radio buttons are grouped together in a RadioGroup and allow the user to select one option from the group. - 19RatingBarThe RatingBar widget comprises a row of stars.
- 20AutoCompleteTextViewThe AutoCompleteTextView widget is an editable text field (EditText) that provides completion suggestions as the user types in text.