How to capture talkback onClick on a Spinner

The normal way of capturing an onClick event on a spinner (How to capture onClick event in Android for a spinner) doesn't trigger the event for a talkback user. Neither the onKeyListener or the onTouchListener is triggered. Any ideas how to achieve this?

1 answer

  • answered 2018-07-11 03:25 sudesh regmi

     spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
            @Override
            public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {
    
            }
    
            @Override
            public void onNothingSelected(AdapterView<?> adapterView) {
    
            }
        });