Android Part 2 Flashcards

1
Q

Where do widgets inherit from?

A

Widgets inherit from view

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Different types of layouts?

A
Constraint Layout
Frame Layout
Linear Layout
Relative Layout
Grid Layout
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Constraint Layout?

A

A layout that allows elements to be attached to other elements or a frame wall

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Frame Layout?

A

Layout that blocks out an area of the screen for a single item

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Linear Layout?

A

Layout that arranges children in a single column or a row

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Relative Layout?

A

Layout where the positions of the children can be set relative to other widgets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Grid Layout?

A

A layout that places children in a rectangular grid

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Where are string, and color resources stored?

A

String string.xml

color color.xml

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an R?

A

R class that contains integer representations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What method you should use to get resources at a runtime?

A

getResources()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a spinner?

A

A spinner is a control that displays TextView and has an associated ListView that contains items.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a compound button?

A

Button with 2 states

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a listview?

A

A view group that displays a list of vertically scrollable items

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a listadapter?

A

a public interface that implements adapter

bridge between a listview and the data that backs the list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Steps to extend the arrayAdapter?

A
Class for data.
Layout file for listview to use
Class that extends Adapter
Instance
Assign the adapter
How well did you know this?
1
Not at all
2
3
4
5
Perfectly