Home » Google » Associate Android Developer » Set the activity content to an explicit view. A content label sometimes depends on information only available at runtime, or the meaning of a View might change over time. When using an ImageView, ImageButton, CheckBox, or other View that conveys information graphically. What attribute to use to provide a content label for that View? When using an EditTexts or editable TextViews, or other editable View. What attribute to use to provide a content label for that View? What attribute to use to indicate that a View should act as a content label for another View? In application theme style, flag windowActionBar (<item name=windowActionBar”>) indicates:
“Set the activity content to an explicit view. This view is placed directly into the activity’s view hierarchy. It can itself be a complex view hierarchy.” This can be done by calling method:
A. findViewById
B. setContentView
C. setActionBar
D. setContentTransitionManager
E. setTheme
Correct Answer: B
Explanation/Reference:
Reference:
https://developer.android.com/training/basics/firstapp/building-ui https://developer.android.com/reference/android/app/Activity
Download Printable PDF. VALID exam to help you PASS.
|
|