Android Programming The Big Nerd Ranch Guide, 3rd Edition
TalkBack 357 Android presents a dialog asking for permission to access certain information, such as observing the user’s actions ...
Chapter 19 Accessibility 358 You will notice something different right away. A green outline appears around the Up button (Figu ...
Explore by Touch 359 Explore by Touch By turning TalkBack on, you have also enabled TalkBack’s Explore by Touch mode. This means ...
Chapter 19 Accessibility 360 Try it out for yourself. Launch CriminalIntent and go to the crime list screen. Press on the toolb ...
Linear navigation by swiping 361 Now swipe right. Accessibility focus moves to the new crime button in the toolbar. TalkBack ann ...
Chapter 19 Accessibility 362 Making Non-Text Elements Readable by TalkBack Now, press the new crime button in the toolbar. This ...
Adding content descriptions 363 You can set a widget’s content description in the XML layout file by setting a value for the att ...
Chapter 19 Accessibility 364 Making a widget focusable The problem is that the ImageView is not registered to receive focus. So ...
Creating a Comparable Experience 365 Creating a Comparable Experience You should specify a content description for any UI widget ...
Chapter 19 Accessibility 366 Run CriminalIntent. View the crime detail screen for the crime you just added a photo to. Press on ...
Using labels to provide context 367 Using labels to provide context Before moving on, give your new crime a title. Press on the ...
Chapter 19 Accessibility 368 However, there is a problem. To see it for yourself, enter the title “Sticker vandalism.” Then pre ...
Using labels to provide context 369 The android:labelFor attribute tells TalkBack that the TextView serves as a label to the vie ...
Chapter 19 Accessibility 370 For the More Curious: Using Accessibility Scanner In this chapter you focused on making your app m ...
For the More Curious: Using Accessibility Scanner 371 Press the check mark, and the Accessibility Scanner will go to work. You w ...
Chapter 19 Accessibility 372 The ImageView, EditText, and CheckBox have outlines around them. This indicates that the scanner f ...
Challenge: Improving the List 373 Challenge: Improving the List On the crime list screen, TalkBack reads the title and date of e ...
Chapter 19 Accessibility 374 mSomeView.postDelayed(new Runnable() { @Override public void run() { // Code for making announceme ...
375 20. Data Binding and MVVM In GeoQuiz and CriminalIntent, you used the standard Android tools to build out your app: a model ...
Chapter 20 Data Binding and MVVM 376 Different Architectures: Why Bother? Every app you have written so far has used a simple v ...
«
15
16
17
18
19
20
21
22
23
24
»
Free download pdf