/* The user presses the touchscreen, quickly moves after releasing the public boolean onfling (Motionevent E1, motionevent E2, float Velocityx, float velocityy) {//Parameter explanation://E1:1th Action_down motionevent//E2: Movement speed on the last action_move motionevent//velocityx:x axis, pixels per second//movement speed on velocityy:y axis, pixels per second//Trigger condition: The coordinate displacement of the x-axis is greater than fling_min_distance and moves faster than fling_min_velocity pixels per second if (E1.getx ()-E2.getx () > fling_min_distance& & Math.Abs (Velocityx) > Fling_min_velocity) {//FLING Lefttoast.maketext (this, "FLING left", Toast.length_short) . Show (); ElseIf (E2.getx ()-E1.getx () > fling_min_distance&& math.abs (Velocityx) > Fling_min_velocity) {//FLING RI Ghttoast.maketext (This, "Fling right", Toast.length_short). Show (); return false;} User long press touch screen, triggered by multiple motionevent action_down @overridepublic void onlongpress (Motionevent e) {//TODO auto-generated method stub}//user presses the touchscreen, and drags, by 1 motionevent action_down, multiple Action_move triggering @overridepublic boolean onscroll (Motionevent E1, Motionevent E2, float Distancex, float distancey) {//TODO auto-generated method stubreturn false;} User long press touch screen, triggered by multiple motionevent action_down @overridepublic void onlongpress (Motionevent e) {//TODO auto-generated method stub}//user presses the touchscreen, and drags, by 1 motionevent action_down, multiple Action_move triggering @overridepublic boolean onscroll (Motionevent E1, Motionevent E2, float Distancex, float distancey) {//TODO auto-generated method Stubreturn false;}