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
View has a performHapticFeedback function, which should allow you to perform it whenever you want, i.e., on an OnClick listener.