MODULE 5 Flashcards
_____ are pop-ups for notifications or confirmation messages
Dialog windows
_____ are sophisticated classes of layouts and UI elements
Dialogs
Best way to create a dialog window in Android is to use the _____ class
DialogFragment
_____ is calling more than one method on the same object in a single line
Chaining
_____ sets the message for a dialog window
Builder.setMessage
_____ sets the “OK” as the text of the button in the dialog window
.setPositiveButton
return statement takes the control to _____ class
MainActivity
_____ handles clicks on the button on dialog windows
DialongInterface.onClickListener
Click on _____ to constrain some UI element
Infer Constraints
_____ are used to define colors, images, layouts, and string values
Resources
_____ are rules for naming in code
Naming conventions
When a variable is a _____, name of variable is prefixed with lowercase m
member of a class
_____ are used to avoid hardcoding text in layouts
String resources
_____ displays large scrollable amounts of data easily
RecyclerView
Interacting with RecyclerView is done through the _____ class
RecyclerAdapter
_____ controls data from an ArrayList and displays it
RecyclerAdapter
_____ manages the arrangement of data in RecyclerView
LayoutManager
_____ holds the data to be shown for each view in RecycleView
ViewHolder
_____ connects data with views in RecycleView
RecyclerView.Adapter
_____ creates ViewHolder and View
onCreateViewHolder
_____ fills ViewHolders with data
onBindViewHolder
_____ returns the total number of items in data
getItemCount
_____ reads layout description and coverts it into View items
LayoutInflater