Flashcards
Untitled
Cards in this deck (9)
- 1What is a "Layout"?-container for 1/> child objects; and a behaviour to position them on the screen within the rectangle of the parent object
- 2What are the layouts available in Android?FrameLayout, LinearLayout, RelativeLayout, TableLayout, (AbsoluteLayout)
- 3What is FrameLayout?-FrameLayout places its 'children' on top of each other so that the 'latest' child is covering the previous (like a deck of cards)
-'placeholder' for other widgets to be added programmatically later - 4What is LinearLayout?-lays out its children next to each other (horizontally/vertically)
-order of 'children' matters
-allocates each child's desired space by their order of addition - 5What's RelativeLayout?-lays out its children relative to each other
-'powerful' as it doesn't require unnecessary "layout nesting" in order to achieve 'the look'
-require each child to have an ID - to position them relatively to others - 6What's TableLayout?-places children in a tables
-consisting TableRow widgets; which represents a row, and contains other UI widgets - 7*How are TableRow widgets placed in a layout?-laid out next to each horiztonally
- 8*How are columns 'determined'?-determined dynamically based on the # of views added in a table row
- 9**What are the widgets available in Android?-Basic views, Picker views, list views