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: Checkbox - Android Tutorial
From the course: Android App Development: Accessibility
Touch target size: Checkbox
- [Narrator] Clickable fields must have a minimum touch size area of 48 DP in width and height. It's important to note that this is not the size of the drawable or text, but the area that activates the touch event. If your touch area is too small, consider increasing the padding around the item to give it more breathing space. You can ensure that your clickable fields must have a minimum height and width of 48 DP by setting minHeight and minWidth respectively. Alternatively, you can also set the TouchDelegate class to increase the touch area, but be careful to not overlap the bounds with another touch area. Let's take a look at some cases where this problem is common, and how to fix them. Let's open our project and inspect some touch size problems. Let's go to the login screen. You can see we have a check box here at the bottom, saying "Remember email address". Check boxes are usually components that are too small for touch. The touch area for this check box is too small. In fact it's…
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
-
-
-
-
-