From the course: Android App Development: Accessibility
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Touch target size: Image button - Android Tutorial
From the course: Android App Development: Accessibility
Touch target size: Image button
- [Instructor] Let's go back to our previous screen and go to the cards demo. In this example you can see that we have a lot of image buttons. The more options button at the top right is too small for touch, and although the buttons at the bottom of the card might already be okay with the touch area, let's make sure that they will never go below 48 dp in under any circumstance. So let's go back to our project files, and then let's first close our current files and locate the card list item and open it. The card list item will contain the entire view for each card. We can then scroll and find the more options button, which is this one. And now we can add the min height of minimum touch size and min width for the same value. If we click on the preview pane, we can see that this button now already meets the minimum size, but the drawable is at the center not at top right anymore. We could fix this problem by changing min height and min width with padding. So we can fix this problem by…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Introduction to universal design4m 2s
-
(Locked)
Universal design examples1m 48s
-
(Locked)
Clear hierarchy of information2m 10s
-
(Locked)
Text and color contrast1m 16s
-
(Locked)
Touch target size: Checkbox3m 13s
-
(Locked)
Touch target size: Image button3m 15s
-
(Locked)
Communicating meaningful information2m 52s
-
(Locked)
Communicating meaningful error messages3m 20s
-
(Locked)
Communicating meaningful toggle buttons3m 41s
-
(Locked)
Alternatives to different actions4m 40s
-
-
-
-
-