Lesson 5: Layouts

  1. Which of the following is a ViewGroup?

  2. Which of the following listed view hierarchies is not valid?

  3. Styles are resources defined in styles.xml. Using styles, you can define colors, fonts, text size, and many other characteristics of a view. True or false?

  4. A View can contain any number of View or ViewGroup as its children. True or false?

  5. What is EditText a subclass of?

  6. Which of the following visibility attribute values, if set on a view, makes it so the view is hidden and does not take up any space in the layout?

  7. Which one of the following statements is true about Button views?

  8. In a ConstraintLayout, which of the following choices describes the constraints needed to keep a view in place during runtime?

  9. Which of the following constraint types expands a view only as much as needed to fit its contents?

  10. What are some benefits of using the Layout Editor in Android Studio?

    Choose as many answers as you see fit.

  11. Which of the following is not a reason for minimizing calls to findViewById()?

  12. Which is the correct way to reference bound data in the XML layout?