CSCI 370 - View Groups and Layouts

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

14 Terms

1
New cards

views

basic building blocks of an android graphical user interface, object that knows how to draw itself on the screen, responsible for a rectangular area on the screen and for handling events in that area

2
New cards

Widget

an object that interacts directly with the user (e.g., button or check box)

3
New cards

ViewGroup

a view that acts as a container to hold its children

4
New cards

Layout

a ViewGroup that is responsible for positioning its children on the screen

5
New cards

XML filles for layout

must contain exaclty one root element, is placed in the res/layout or the res/layout-land, compiled into a View resource

6
New cards

Attributes

can be inherited by View classes, some are specific to a view object

7
New cards

id attribute

used to uniquely identify the View within the tree

8
New cards

LinearLayout

displays its child View elements in a linear direction, either vertically or horizontally, creates a scrollbar if the length of the window exceeds the length of the screen

9
New cards

ConstraintLayout

allows you to create large and complex layouts with a flat view hierarchy (i.e., no nested view groups)

10
New cards

TableLayout

ViewGroup that displays its child View elements in rows and columns to HTML
tables, will have as many columns as the row with the most cell

11
New cards

Child views of tableLayout

TableRow objects

12
New cards

stretchable column

can expand in width to fit any extra space

13
New cards

shrinkable column

can be shrunk to fit the table into its parent object.

14
New cards

RecyclerView

view group that displays a list of scrollable items, the layout involves two XML files, is not a layout but is usually the only view within a parent layout