Android Part 2 Flashcards
Where do widgets inherit from?
Widgets inherit from view
Different types of layouts?
Constraint Layout Frame Layout Linear Layout Relative Layout Grid Layout
Constraint Layout?
A layout that allows elements to be attached to other elements or a frame wall
Frame Layout?
Layout that blocks out an area of the screen for a single item
Linear Layout?
Layout that arranges children in a single column or a row
Relative Layout?
Layout where the positions of the children can be set relative to other widgets
Grid Layout?
A layout that places children in a rectangular grid
Where are string, and color resources stored?
String string.xml
color color.xml
What is an R?
R class that contains integer representations
What method you should use to get resources at a runtime?
getResources()
What is a spinner?
A spinner is a control that displays TextView and has an associated ListView that contains items.
What is a compound button?
Button with 2 states
What is a listview?
A view group that displays a list of vertically scrollable items
What is a listadapter?
a public interface that implements adapter
bridge between a listview and the data that backs the list
Steps to extend the arrayAdapter?
Class for data. Layout file for listview to use Class that extends Adapter Instance Assign the adapter