ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 108 - Associate Android Developer discussion

Report
Export

A content label sometimes depends on information only available at runtime, or the meaning of a View might change over time. For example, a Play button might change to a Pause button during music playback. In these cases, to update the content label at the appropriate time, we can use:

A.
View#setContentDescription(int contentDescriptionResId)
Answers
A.
View#setContentDescription(int contentDescriptionResId)
B.
View#setContentLabel(int contentDescriptionResId)
Answers
B.
View#setContentLabel(int contentDescriptionResId)
C.
View#setContentDescription(CharSequence contentDescription)
Answers
C.
View#setContentDescription(CharSequence contentDescription)
D.
View#setContentLabel(CharSequence contentDescription)
Answers
D.
View#setContentLabel(CharSequence contentDescription)
Suggested answer: C

Explanation:

Reference:

https://support.google.com/accessibility/android/answer/7158690?hl=en

asked 18/09/2024
Zachary Janssen
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first