ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 121 - Associate Android Developer discussion

Report
Export

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.
A State List (<selector> element )
Answers
A.
A State List (<selector> element )
B.
A Layer List (<layer-list> element) with items android:id="@+id/progress" and android:id="@+id/background" inside it.
Answers
B.
A Layer List (<layer-list> element) with items android:id="@+id/progress" and android:id="@+id/background" inside it.
C.
An <ImageView> element with android:id="@+id/progress" identifier
Answers
C.
An <ImageView> element with android:id="@+id/progress" identifier
Suggested answer: B

Explanation:

Reference:

https://developer.android.com/guide/topics/resources/drawable-resource

asked 18/09/2024
Farah Fauzi
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first