0

I have a pull to refresh listView and a button. When I click the button, I want the focus for listView to be gone, I am working with talk back settings is on.

I used setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO_HIDE_DESCENDANTS).

It is not working in 4.3 devices. What should I do to fix it? It is perfectly working in 4.4 and above devices.

Farouk Touzi
  • 3,451
  • 2
  • 19
  • 25

1 Answers1

0

Try doing ,

Override isEnabled(int position) method in your Adapter and return false.

@Override
public boolean isEnabled(int position) {
        return false;
}

Check stackoverflow answer.

Community
  • 1
  • 1
Amit Vaghela
  • 22,772
  • 22
  • 86
  • 142