Q1. Working with Custom View. Once you define the custom attributes, you can use them in layout XML files just like built-in attributes. The only difference is that your custom attributes belong to a different namespace. Instead of belonging to the http://schemas.android.com/apk/res/android namespace, they belong to:
A.http://schemas.android.com/apk/res/[your package name]
B. http://schemas.android.com/apk/[your package name]
C. http://schemas.android.com/[your package name]
Correct Answer: A
Q2. In application theme style, value statusBarColor () means:
A.Color of text (usually same as colorForeground).
B. Shows a thin line of the specified color between the navigation bar and the app content. For this to take effect, the window must be drawing the system bar backgrounds with R.attr.windowDrawsSystemBarBackgrounds and the navigation bar must not have been requested to be translucent with R.attr.windowTranslucentNavigation. Corresponds to Window.setNavigationBarDividerColor(int).
C. The color for the status bar. If the color is not opaque, consider setting View.SYSTEM_UI_FLAG_LAYOUT_STABLE and View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN. For this to take effect, the window must be drawing the system bar backgrounds with R.attr.windowDrawsSystemBarBackgrounds and the status bar must not have been requested to be translucent with R.attr.windowTranslucentStatus. Corresponds to Window.setStatusBarColor(int).
D. The color for the navigation bar. If the color is not opaque, consider setting View.SYSTEM_UI_FLAG_LAYOUT_STABLE and View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION. For this to take effect, the window must be drawing the system bar backgrounds with R.attr.windowDrawsSystemBarBackgrounds and the navigation bar must not have been requested to be translucent with R.attr.windowTranslucentNavigation. Corresponds to Window.setNavigationBarColor(int).
Correct Answer: C
Q3. Working with Custom View. Once you define the custom attributes, you can use them in layout XML files just like built-in attributes. The only difference is that your custom attributes belong to a different namespace. Instead of belonging to the http://schemas.android.com/apk/res/android namespace, they belong to:
A.http://schemas.android.com/apk/res/[your package name]
B. http://schemas.android.com/apk/[your package name]
C. http://schemas.android.com/[your package name]
Correct Answer: A
Q4. In application theme style, flag windowDrawsSystemBarBackgrounds () indicates:
A.whether this window should have an Action Bar in place of the usual title bar.
B. whether there should be no title on this window.
C. that this window should not be displayed at all.
D. whether this is a floating window.
E. whether this Window is responsible for drawing the background for the system bars.
Correct Answer: E
$ 39
Reviews
There are no reviews yet.