How to do Android Accessibility for custom viewgroups

眉间皱痕 提交于 2019-12-11 11:39:19

问题


  1. I have a CustomViewGroup that extends from a ViewGroup.
  2. In it I have 2 text views and 3, 4 different buttons that I inflate from different XML files.

My problem is that it does not seem to be accessible. What do I need to do at my end to see whats the problem?

Can you someone please point me to a good article or resource about accessibility ? The Androiid docs are very hard for me to follow. I am specifically looking for source code for extending ViewGRoups and using it.

Thanks


回答1:


You should check out the Accessibility talk (and slides including step-by-step example code) from Google I/O 2013 as well as the documentation for the ExploreByTouchHelper class in the support library.



来源:https://stackoverflow.com/questions/24065375/how-to-do-android-accessibility-for-custom-viewgroups

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!