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

Touch target size: Checkbox - Android Tutorial

From the course: Android App Development: Accessibility

Start my 1-month free trial

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…

Contents