Upgrade to Pro — share decks privately, control downloads, hide ads and more …

New York Accessibility Hackathon - Accessibilit...

New York Accessibility Hackathon - Accessibility on Android

François Blavoet

June 03, 2017
Tweet

More Decks by François Blavoet

Other Decks in Technology

Transcript

  1. WHAT IS ACCESSIBILITY ? ▸ Accessibility : making sure that

    anyone can use your application ▸ Who is targeted ?
 Blind
 Any kind of visual, auditory and motor disabilities
 Color blindness
 …

  2. WHO ▸ United States, 23.7 million adults report difficulty seeing

    ▸ EU : 75 million have some disability
 30 million have partial sight
 
 By 2025, 20% of the European population will be over 65
  3. WHO

  4. ▸ follow the material spec ▸ try to get close

    to a 5:1 contrast ratio TEXT AND IMAGES
  5. MAKE YOUR TOUCH TARGETS BIG ENOUGH ▸ 48dp * 48

    dp should be your smallest target
  6. MAKE YOUR TOUCH TARGETS BIG ENOUGH ▸ Sometimes, your view

    hierarchy makes this hard : use a touch delegate val rect = Rect() view.getHitRect(rect) rect.right += 24.pxToDp(context) rect.bottom += 16.pxToDp(context) (view.parent as View).touchDelegate = TouchDelegate(rect, view)
  7. ACCESSIBILITY CHECKLIST ▸ make sure to have enough contrast ▸

    don’t rely only on color to signal error / success ▸ support sp fonts without breaking your layouts ▸ support display size changes ▸ make sure your touch targets are at least 48dp x 48dp ▸ provide content description ▸ make sure that the focus handling is correct