while I implement Spinner for creating dropdown view, the first element is always shown in main view as well as in dropdown list. so I hid it by overriding getDropdrownView(). but problem arises in talkback.
Problem is: when I click on spinner, it opens up dropdown view and says "showing 2 items" even if 1 item is present there. I wanted to override the Read out text as "showing 1 item" by providing onclickListener . But spinner doesnt support click events.
I tried ontouchListener, onkeyListener but nothing could override the text "Showing 2 items". setContentDescription also not working. I tried the following but it did not work too:
AccessibilityEvent talkBackEvent = AccessibilityEvent.obtain(AccessibilityEvent.TYPE_VIEW_CLICKED);
talkBackEvent.getText().add("showing 1 item");
mSelectSpinner.onInitializeAccessibilityEvent(talkBackEvent);
mSelectSpinner.sendAccessibilityEventUnchecked(talkBackEvent);
mSelectSpinner.onPopulateAccessibilityEvent(talkBackEvent);
Please help me out ..there is very less forum discussions we find about talkback.
0 comments:
Post a Comment