SlideShare ist ein Scribd-Unternehmen logo
1 von 7
ANDROID ACCESSIBILITY
 Universal design
 Talkback, Explore By Touch, Accessibility Settings
 Use recommended touch target sizes: 48 dp; more for kids
 Label visual UI elements meaningfully
 Provide alternatives to affordances that time out
 Use standard framework controls or enable TalkBack for
custom controls
 Try it out yourself
ACCESSIBILITY DESIGN
 For visually and hearing impaired
 Talkback and Explore by Touch
 For UI controls: android:contentDescription
 For custom controls extending View: Use APIs
 EditText Use android:hint
 Focus navigation android:focusable; Controlling focus order
 Custom Views: handle KEYCODE_DPAD_CENTER; populate
Accessibility events(dispatchPopulateAccessibilityEvent(),
onPopulateAccessibilityEvent(),
onInitializeAccessibilityEvent()); sendAccessibilityEvent(Acces
sibilityEvent.TYPE_VIEW_TEXT_CHANGED); Provide customized
accessibility context (the getAccessibilityNodeProvider(),
AccessibilityNodeProvider); Handling custom touch
events(onTouchEvent(MotionEvent))
UI ACCESSIBILITY
 android:contentDescription,setContentDescription(CharSeque
nce), android:focusable, focusorder, Custom view controls, No
audio-only feedback(a notification or haptic feedback), test
directional controls, test eyes free
 Avoid having user interface controls that fade out or
disappear after a certain amount of time.
 android:hint, virtual view hierarchy, Custom controls, Prompts
for related controls, video captioning and subtitles,
announceForAccessibility(CharSequence), Sets of small
controls with one contentDescription, no accessibility for
decorative images
ACCESSIBILITY DEVELOPER CHECKLIST
 uses-permission BIND_ACCESSIBILITY_SERVICE
 accessibility_service_config.xml accessibility options for
service
 android:packageNames service will handle events for classes
in this folder
 android:accessibilityEventTypes events handled
 Extend AccessibilityService class
 Event details: AccessibilityEvent.getRecordCount(),
AccessibilityEvent.getSource()
 Accessibility Focus
ACCESSIBILITY SERVICE
 Directional Controls
 TalkBack audio prompts
 Enable Explore by Touch
 All actionable controls should be min 48dp
 Enable talkback, verify gestures work
 Audio feedback must have alternate feedback(notification,
haptic)
TESTING
 android:focusable="false”
 android:focusableInTouchMode="false”
 android:hapticFeedbackEnabled="false”
 android:contentDescription="@null”
 setContentDescription("u00A0");
ETC

Weitere ähnliche Inhalte

Was ist angesagt?

Day 4: Activity lifecycle
Day 4: Activity lifecycleDay 4: Activity lifecycle
Day 4: Activity lifecycle
Ahsanul Karim
 
iOS app dev Training - Session1
iOS app dev Training - Session1iOS app dev Training - Session1
iOS app dev Training - Session1
Hussain Behestee
 
Efficient Image Processing - Nicolas Roard
Efficient Image Processing - Nicolas RoardEfficient Image Processing - Nicolas Roard
Efficient Image Processing - Nicolas Roard
Paris Android User Group
 
Android appwidget
Android appwidgetAndroid appwidget
Android appwidget
Krazy Koder
 

Was ist angesagt? (20)

Write once, ship multiple times
Write once, ship multiple timesWrite once, ship multiple times
Write once, ship multiple times
 
Beginning Native Android Apps
Beginning Native Android AppsBeginning Native Android Apps
Beginning Native Android Apps
 
What's new in android 4.4 - Romain Guy & Chet Haase
What's new in android 4.4 - Romain Guy & Chet HaaseWhat's new in android 4.4 - Romain Guy & Chet Haase
What's new in android 4.4 - Romain Guy & Chet Haase
 
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
 
Training Session 2 - Day 2
Training Session 2 - Day 2Training Session 2 - Day 2
Training Session 2 - Day 2
 
Day 4: Activity lifecycle
Day 4: Activity lifecycleDay 4: Activity lifecycle
Day 4: Activity lifecycle
 
The Mighty Power of the Accessibility Service - Guy Griv, Pepper
The Mighty Power of the Accessibility Service - Guy Griv, PepperThe Mighty Power of the Accessibility Service - Guy Griv, Pepper
The Mighty Power of the Accessibility Service - Guy Griv, Pepper
 
iOS app dev Training - Session1
iOS app dev Training - Session1iOS app dev Training - Session1
iOS app dev Training - Session1
 
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
GDG GeorgeTown Devfest 2014 Presentation: Android Wear: A Developer's Perspec...
 
Efficient Image Processing - Nicolas Roard
Efficient Image Processing - Nicolas RoardEfficient Image Processing - Nicolas Roard
Efficient Image Processing - Nicolas Roard
 
Android 3
Android 3Android 3
Android 3
 
Being Epic: Best Practices for Android Development
Being Epic: Best Practices for Android DevelopmentBeing Epic: Best Practices for Android Development
Being Epic: Best Practices for Android Development
 
Android application-component
Android application-componentAndroid application-component
Android application-component
 
Android Screen Containers & Layouts
Android Screen Containers & LayoutsAndroid Screen Containers & Layouts
Android Screen Containers & Layouts
 
Android appwidget
Android appwidgetAndroid appwidget
Android appwidget
 
Android xml-based layouts-chapter5
Android xml-based layouts-chapter5Android xml-based layouts-chapter5
Android xml-based layouts-chapter5
 
Android Widget
Android WidgetAndroid Widget
Android Widget
 
AI: Mobile Apps That Understands Your Intention When You Typed
AI: Mobile Apps That Understands Your Intention When You TypedAI: Mobile Apps That Understands Your Intention When You Typed
AI: Mobile Apps That Understands Your Intention When You Typed
 
KKBOX WWDC17 UIKit - QQ
KKBOX WWDC17 UIKit - QQKKBOX WWDC17 UIKit - QQ
KKBOX WWDC17 UIKit - QQ
 
Mobile application development
Mobile application developmentMobile application development
Mobile application development
 

Ähnlich wie Android accessibility

Droidcon 2013 accessible android apps sharma_google
Droidcon 2013 accessible android apps sharma_googleDroidcon 2013 accessible android apps sharma_google
Droidcon 2013 accessible android apps sharma_google
Droidcon Berlin
 
See Me, Feel Me, Touch Me, Heal Me
See Me, Feel Me, Touch Me, Heal MeSee Me, Feel Me, Touch Me, Heal Me
See Me, Feel Me, Touch Me, Heal Me
UXPA Boston
 
Android Development
Android DevelopmentAndroid Development
Android Development
Paulo Hecht
 
Android accessibility 9th_april_droidcon
Android accessibility 9th_april_droidconAndroid accessibility 9th_april_droidcon
Android accessibility 9th_april_droidcon
sonia1sh
 

Ähnlich wie Android accessibility (20)

Compose In Practice
Compose In PracticeCompose In Practice
Compose In Practice
 
Droidcon 2013 accessible android apps sharma_google
Droidcon 2013 accessible android apps sharma_googleDroidcon 2013 accessible android apps sharma_google
Droidcon 2013 accessible android apps sharma_google
 
Android accessibility till_kitkat_nov2013_andevcon
Android accessibility till_kitkat_nov2013_andevconAndroid accessibility till_kitkat_nov2013_andevcon
Android accessibility till_kitkat_nov2013_andevcon
 
Poster Aegis poster android_conf2011
Poster Aegis poster android_conf2011Poster Aegis poster android_conf2011
Poster Aegis poster android_conf2011
 
Android development for iOS developers
Android development for iOS developersAndroid development for iOS developers
Android development for iOS developers
 
Developing a Modern Mobile App Strategy
Developing a Modern Mobile App StrategyDeveloping a Modern Mobile App Strategy
Developing a Modern Mobile App Strategy
 
Top Tips for Android UIs - Getting the Magic on Tablets
Top Tips for Android UIs - Getting the Magic on TabletsTop Tips for Android UIs - Getting the Magic on Tablets
Top Tips for Android UIs - Getting the Magic on Tablets
 
Design Strategy for Cross-Device User Experience
Design Strategy for Cross-Device User ExperienceDesign Strategy for Cross-Device User Experience
Design Strategy for Cross-Device User Experience
 
What's new in Android Lollipop
What's new in Android LollipopWhat's new in Android Lollipop
What's new in Android Lollipop
 
See Me, Feel Me, Touch Me, Heal Me
See Me, Feel Me, Touch Me, Heal MeSee Me, Feel Me, Touch Me, Heal Me
See Me, Feel Me, Touch Me, Heal Me
 
Android gui framework
Android gui frameworkAndroid gui framework
Android gui framework
 
Android Development
Android DevelopmentAndroid Development
Android Development
 
Android accessibility 9th_april_droidcon
Android accessibility 9th_april_droidconAndroid accessibility 9th_april_droidcon
Android accessibility 9th_april_droidcon
 
TK2323 Lecture 1 - Introduction to Mobile Application.pdf
TK2323 Lecture 1 - Introduction to Mobile Application.pdfTK2323 Lecture 1 - Introduction to Mobile Application.pdf
TK2323 Lecture 1 - Introduction to Mobile Application.pdf
 
Mobile Application Development with JUCE and Native API’s
Mobile Application Development with JUCE and Native API’sMobile Application Development with JUCE and Native API’s
Mobile Application Development with JUCE and Native API’s
 
Android development training
Android development trainingAndroid development training
Android development training
 
Languor
Languor Languor
Languor
 
Developing for Google Glass
Developing for Google GlassDeveloping for Google Glass
Developing for Google Glass
 
Break Timer: Android-wear introduction and application case-study
Break Timer: Android-wear introduction and application case-studyBreak Timer: Android-wear introduction and application case-study
Break Timer: Android-wear introduction and application case-study
 
Intro to iOS Application Architecture
Intro to iOS Application ArchitectureIntro to iOS Application Architecture
Intro to iOS Application Architecture
 

Mehr von Puneet Kumar (10)

Quick Scala
Quick ScalaQuick Scala
Quick Scala
 
Robotics using EV3 Introduction
Robotics using EV3 Introduction Robotics using EV3 Introduction
Robotics using EV3 Introduction
 
Chess1
Chess1Chess1
Chess1
 
Nagios
NagiosNagios
Nagios
 
System adm
System admSystem adm
System adm
 
Yoga
YogaYoga
Yoga
 
Gwt
GwtGwt
Gwt
 
Redis
RedisRedis
Redis
 
Bitcoin
BitcoinBitcoin
Bitcoin
 
Html5 CSS3
Html5 CSS3Html5 CSS3
Html5 CSS3
 

Kürzlich hochgeladen

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 

Kürzlich hochgeladen (20)

BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 

Android accessibility

  • 2.  Universal design  Talkback, Explore By Touch, Accessibility Settings  Use recommended touch target sizes: 48 dp; more for kids  Label visual UI elements meaningfully  Provide alternatives to affordances that time out  Use standard framework controls or enable TalkBack for custom controls  Try it out yourself ACCESSIBILITY DESIGN
  • 3.  For visually and hearing impaired  Talkback and Explore by Touch  For UI controls: android:contentDescription  For custom controls extending View: Use APIs  EditText Use android:hint  Focus navigation android:focusable; Controlling focus order  Custom Views: handle KEYCODE_DPAD_CENTER; populate Accessibility events(dispatchPopulateAccessibilityEvent(), onPopulateAccessibilityEvent(), onInitializeAccessibilityEvent()); sendAccessibilityEvent(Acces sibilityEvent.TYPE_VIEW_TEXT_CHANGED); Provide customized accessibility context (the getAccessibilityNodeProvider(), AccessibilityNodeProvider); Handling custom touch events(onTouchEvent(MotionEvent)) UI ACCESSIBILITY
  • 4.  android:contentDescription,setContentDescription(CharSeque nce), android:focusable, focusorder, Custom view controls, No audio-only feedback(a notification or haptic feedback), test directional controls, test eyes free  Avoid having user interface controls that fade out or disappear after a certain amount of time.  android:hint, virtual view hierarchy, Custom controls, Prompts for related controls, video captioning and subtitles, announceForAccessibility(CharSequence), Sets of small controls with one contentDescription, no accessibility for decorative images ACCESSIBILITY DEVELOPER CHECKLIST
  • 5.  uses-permission BIND_ACCESSIBILITY_SERVICE  accessibility_service_config.xml accessibility options for service  android:packageNames service will handle events for classes in this folder  android:accessibilityEventTypes events handled  Extend AccessibilityService class  Event details: AccessibilityEvent.getRecordCount(), AccessibilityEvent.getSource()  Accessibility Focus ACCESSIBILITY SERVICE
  • 6.  Directional Controls  TalkBack audio prompts  Enable Explore by Touch  All actionable controls should be min 48dp  Enable talkback, verify gestures work  Audio feedback must have alternate feedback(notification, haptic) TESTING
  • 7.  android:focusable="false”  android:focusableInTouchMode="false”  android:hapticFeedbackEnabled="false”  android:contentDescription="@null”  setContentDescription("u00A0"); ETC

Hinweis der Redaktion

  1. http://developer.android.com/design/patterns/accessibility.html
  2. http://developer.android.com/guide/topics/ui/accessibility/index.html
  3. http://developer.android.com/guide/topics/ui/accessibility/checklist.html
  4. http://developer.android.com/guide/topics/ui/accessibility/services.html