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.


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)
B . View#setContentLabel(int contentDescriptionResId)
C . View#setContentDescription(CharSequence contentDescription)
D . View#setContentLabel(CharSequence contentDescription)

Answer: C

Explanation:

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

Leave a Reply

Your email address will not be published.