1/47
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
soft keyboard
The onscreen keyboard is called a ______.
tapping or gestures
Input can come in the form of ______ (using two fingers to pan, rotate, or zoom)
simplify the user experience
The primary design challenge is to ______.
soft or physical keyboard
Text entered via a ______ is the most common type of mobile input
Text components
can request different input types (e.g., plain text, phone number, various types of numeric values)
component type
can constrain the characters available
User experience
refers to all aspects of interaction with a device
id attribute
You can use the _______ in the Attributes pane to enter a name that begins with the prefix tv (for TextView)
string table (strings.xml)
String items displayed in the components of an app can be stored in the ______.
string array
can be used to store a group of related strings
String array
Defines a string resource of related items in a central location within strings.xml
item
defines an individual entry within a string array
Android Studio editor
As you type the string array XML code, the _______ offers suggestions in a panel that can complete a statement
Android background feature
can help provide an app's individual flair
White
The default color of Android background feature
background attribute
To change the the Android background, set the ______ in the Attributes pane.
hint
a short description of a component that is visible as gray text (also called a watermark) inside a Text Number component or any Text input
Hint
Often used to provide guidelines about the input expected in a component for the user
textColorHint attribute
you can change the color of the hint by changing the _______.
textColorHint Attribute
May be necessary to ensure adequate contrast between the text and background
Spinner component
Is similar to a drop-down list for selecting a single item from a fixed list
items
The Spinner component displays a prompt with a list of strings called _____.
prompt
which can be used to display instructions at the top of the Spinner control, is stored in strings.xml and is named ______.
entries
The Spinner attribute called ______ connects the string array in strings.xml to the Spinner component so the entries can be displayed in the application
spinnerMode attribute
sets the component to dialog mode or drop-down mode
layout_width, layout_height
The ______ and ______ attributes set the dimensions
ImageView components
should have a content description for visually impaired users
contentDescription attribute
description is provided by setting the ______.
Java variable
is used to contain data that changes during the execution of a program
final variable
can be initialized only once
Final variable
Attempting to reassign the value results in a compile error when the application runs
EditText class
For the concert tickets app, you insert code to create the tickets variable containing the extracted _________ text.
OnClickListener
waits in the background and listens for the user to click a button
Button event
Clicking the button activates a ______, triggering the Button event OnClick handler to execute the associated code.
result
Code to instantiate the TextView component to a variable named ______ is used to display the result of the ticket price calculation
(1) declare the variable
(2) assign a value to the variable
Two steps are necessary in order to use a variable:
eight
Java has _____ built-in primitive (simple) types of data
String type
is a class and not a primitive data type
string
can be a character, word, or phrase
type String
Most strings used in Java are objects of ______ (e.g., String groupChoice;)
Variables
must be declared before you can use them
getText()
Data stored in the EditText component can be read with the _______ method.
String
Data is read in as a ______, by default
Parse class
is used to convert strings into numbers
DecimalFormat
Java includes a class called ______ that provides patterns for formatting numbers for output on the Android devic
getSelectedItem()
The method that returns the text label of the
currently selected Spinner item
setText()
The method that displays text in a TextView component
+
You can concatenate text and string variable values using _______.