How to enable haptic feedback on button view

后端 未结 5 1683
时光说笑
时光说笑 2020-12-13 03:52

I want to add haptic feedback to my application\'s buttons and control them programmatically to show button state (enabled and disabled). The default haptic feedback setter

5条回答
  •  死守一世寂寞
    2020-12-13 04:39

    View has a performHapticFeedback function, which should allow you to perform it whenever you want, i.e., on an OnClick listener.

提交回复
热议问题