Build a basic layout Return to pathway Which of the following elements is considered a View in an Android app? An image A clickable button Text on the screen All of the above None of the above What is the main purpose of a ViewGroup? It groups together the most common views that developers use in Android apps. It serves as a container for View objects, and is responsible for arranging the View objects within it. It is required to make a view interactive as a way to group TextViews on a screen. It is required to set colors and background images. Fill-in-the-blanks Enter one or more words to complete the sentence. The type of ViewGroup that helps you arrange the views inside of it in a flexible way is called a ___. Which of the following are Attributes in Android? Choose as many answers as you see fit. text textSize textUse textColor textContent Fill-in-the-blanks Enter one or more words to complete the sentence. In Android, a graphic that can be drawn to the screen is generally referred to as a ___. Which of the following is an example of a “constraint” that could be applied to a view in a ConstraintLayout ViewGroup in the Layout Editor? Choose as many answers as you see fit. A view that must always be a minimum distance away from the edge of its container A view that must always be free of warning triangles A view that must always be to the right of another view A view that must always be the topmost view inside a container A view that must always include a contentDescription attribute What is the purpose of an XML file? It provides the theme settings for your app. It lets your app users create their own custom views of the app. It stores all the images your app will use. It describes the layout of view groups and views for a screen. Why should you use string resources instead of hard-coded strings in your apps? Choose as many answers as you see fit. It makes your app easier to translate. It allows you to use longer strings in your app. It allows you to apply special color attributes to your string. It allows you to reuse the same string in multiple places in your program. Submit answers error_outline An error occurred when grading the quiz. Please try again.