When a visually impaired person is using the TalkBack function to explore an UI using PagerSlidingTabStrop with an IconTabProvider he just hears 'Unmarked button 143', 'Unmarked button 186', etc as you add ImageButtons without a contentDescription.
You need to do something like:
private void addIconTab(final int position, int resId, String contentDescription) {
ImageButton tab = new ImageButton(getContext());
tab.setContentDescription(contentDescription);
tab.setImageResource(resId);
addTab(position, tab);
}
to make it usable for blind persons.
I suggest you redefine
public interface IconTabProvider {
public int getPageIconResId(int position);
public String getPageContentDescription(int position);
}
This is really important for visually impaired people. Please contribute to making Andoid apps usable by visually impaired people by making this change.
When a visually impaired person is using the TalkBack function to explore an UI using PagerSlidingTabStrop with an IconTabProvider he just hears 'Unmarked button 143', 'Unmarked button 186', etc as you add ImageButtons without a contentDescription.
You need to do something like:
to make it usable for blind persons.
I suggest you redefine
Here is a diff of how I did the change: http://code.google.com/p/dr-radio-android/source/diff?spec=svn439&r=439&format=side&path=/trunk/DRRadiov3/src/dk/dr/radio/diverse/PagerSlidingTabStrip.java
This is really important for visually impaired people. Please contribute to making Andoid apps usable by visually impaired people by making this change.