Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

- The components that make up the user interface of an Android app (such as text

ID: 3878299 • Letter: #

Question

- The components that make up the user interface of an Android app (such as text views and buttons) are known as _______

objects

widgets

activities

resources

layouts

- A(n) _______ defines how the components of a UI (such as text views and buttons) are arranged on the screen.

layout

menu

palette

resource

widget

- What is the name of the file where string resources are given?

Type the name below exactly as it appears in Android Studio (the file name only).

- The files for string and dimen resources are stored in which resource folder?

- When specifying text size, it is best practice to use which unit of measurement?

scale-independent pixels (sp)

pixels (px)

density-independent pixels (dp)

ems

inches (in)

Here is a portion of an activity's layout file defining a text view:

The text on the text view is defined by a string resource named goodbye_string. What goes in the blank?

objects

widgets

activities

resources

layouts

Explanation / Answer

1. widgets

2. layout

3. strings.xml

4. res/values/

5. dp units to define your application’s UI is highly recommended,

6. @string