How to prevent android talkback to speak seekbar progress

前端 未结 3 1061
悲哀的现实
悲哀的现实 2021-01-19 10:51

I have a custom control extending SeekBar, in which I have overridden onInitializeAccessibilityNodeInfo as below:

@Override
public          


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-19 11:42

    There are two ways to achieve this:

    • Programmatically you can say:

      view.setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO);
      
    • In your XML file, set the importance to "no".

      
      

提交回复
热议问题