问题
- I have a CustomViewGroup that extends from a ViewGroup.
- 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