Onlongpress Is Not Working With Our Touch Events
I am developing a game in which I want to perform certain operations when user single touch the screen, and some other operations when user long press the screen. For this, I have
Solution 1:
Change your OnTouchEvent
to the following:
publicoverrideboolOnTouchEvent(MotionEvent e){
Log.Debug(Tag, "Inside" + System.Reflection.MethodBase.GetCurrentMethod().Name + "Method");
gestureDetector.OnTouchEvent(e);
returntrue;
}
You can find the explanation here.
Post a Comment for "Onlongpress Is Not Working With Our Touch Events"