Android Programming The Big Nerd Ranch Guide by Bill Phillips, Chris Stewart, Kristin Marsicano (z-lib.org)

(gtxtreme123) #1

Using labels to provide context


Using labels to provide context


Before moving on, give your new crime a title. Press on the title EditText box. TalkBack announces,
“Edit box. Enter a title for the crime” (Figure 19.9).


Figure 19.9  EditText hint


By default, TalkBack announces whatever content is in the EditText. Because you have not entered a
title, this means TalkBack reads the value you specified for android:hint. So you do not need to (and
should not) specify a content description for your EditText.

Free download pdf