1

As title, I am created a player, and i want change volume and brightness by way use GestureDetector as Mx Player application. (swipe left bottom <-> top to change brightness and swipe right bottom <-> top to change volume )

change volume

change brightness

Please help me.

Thanks very much :-)

MrSiro
  • 281
  • 1
  • 4
  • 16
  • 2
    use `GestureDetector.OnGestureListener#onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY)` then – pskink Dec 14 '14 at 18:37
  • Can you help me write more detail ? – MrSiro Dec 14 '14 at 19:19
  • http://www.google.com/m?q=gesturedetector+example&client=ms-opera-mini-android&channel=new – pskink Dec 14 '14 at 19:22
  • i'm tried but can't done. Can you help me create a example or send to me any tutorial detail link ? Thanks you very much. – MrSiro Jan 23 '15 at 10:10
  • What link have you tried? – pskink Jan 23 '15 at 10:13
  • [link](http://www.androidsnippets.com/gesturedetector-and-gesturedetectorongesturelistener) and some other link... I don't know how to can handle manipulation scroll left - right - up - down and distance which it move to set value for brightness, volume. I want set brightness when scroll up/down at left half and set volume when scroll up/down at right half like MX Player application. – MrSiro Jan 23 '15 at 10:44
  • The link you tried has onScroll implemented, try its parameters – pskink Jan 23 '15 at 10:49
  • You can try this library. https://github.com/mdg-iitr/Swipper – AndroidDev Feb 27 '20 at 10:35

0 Answers0