Question 9
We have a custom view that extends android.widget.ProgressBar. Our progress bar is not touchable, focusable, etc.: it just shows progress. Style for our custom progress bar extends "Widget.AppCompat.ProgressBar.Horizontal". An item, named "progressDrawable", in our style, is a xml file . What we usually can see as a main single element in this xml file:
A State List (<selector> element )
A Layer List (<layer-list> element) with items android:id="@+id/progress" and android:id="@+id/background" inside it.
An <ImageView> element with android:id="@+id/progress" identifier
Correct answer: B
Explanation:
Reference:https://developer.android.com/guide/topics/resources/drawable-resource
Reference:
https://developer.android.com/guide/topics/resources/drawable-resource