Podcast
Questions and Answers
What is the purpose of a ViewGroup in Android?
What is the purpose of a ViewGroup in Android?
- To create interactive UI components such as TextView and EditText
- To define the layout in which views will be arranged on the screen (correct)
- To handle events and draw the user interface
- To display images on the screen
Which of the following is an example of a ViewGroup?
Which of the following is an example of a ViewGroup?
- LinearLayout (correct)
- TextView
- EditText
- ImageView
What is the relationship between a ViewGroup and a View?
What is the relationship between a ViewGroup and a View?
- A View is a type of ViewGroup
- A View cannot be contained within a ViewGroup
- A ViewGroup can contain other ViewGroups (correct)
- A ViewGroup is a type of View
What is the primary function of a View in Android?
What is the primary function of a View in Android?
Which of the following statements about ViewGroups and Views is true?
Which of the following statements about ViewGroups and Views is true?
Flashcards are hidden until you start studying