Quantcast
Channel: Is there a way to define haptic feedback on Android in xml? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by aleph_null for Is there a way to define haptic feedback on Android...

An easy way to provide haptic feedback is using the Vibrator service. Vibrator v = (Vibrator)getSystemService(Context.VIBRATOR_SERVICE);v.vibrate(200);You can also use v.vibrate(long[] pattern, int...

View Article



Answer by Ian for Is there a way to define haptic feedback on Android in xml?

the only thing similar to haptics that you can define in xml is an onclick listener:android:onClick="myclick"public void myclick(View v) {}If you are looking for the same feedback for a few buttons,...

View Article

Is there a way to define haptic feedback on Android in xml?

Is there an easy quick way to addhaptic feedback for buttons in xmlor do I really have to write custom haptic feedback code for every button separately.I mean, do I really have to add haptic feedback...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images