Tutorial 21

+1 Satvik Soni · June 2, 2015
Hey there, my Alt+ Ins. Doesn't work so I have decided to type it all. 
Can someone post the entire source code?
Thanks

Post a Reply

Replies

Oldest  Newest  Rating
0 Satvik Soni · June 3, 2015
Anyone ?
+1 Lanyon Conrad · June 4, 2015

////////////////////// begin gestures ////////////////

@Override
public boolean onSingleTapConfirmed(MotionEvent e) {
responsiveText.setText("onSingleTapConfirmed");
return true;
}

@Override
public boolean onDoubleTap(MotionEvent e) {
responsiveText.setText("onDoubleTap");
return true;
}

@Override
public boolean onDoubleTapEvent(MotionEvent e) {
responsiveText.setText("onDoubleTapEvent");
return true;
}

@Override
public boolean onDown(MotionEvent e) {
responsiveText.setText("onDown");
return true;
}

@Override
public void onShowPress(MotionEvent e) {
responsiveText.setText("onShowPress");
}

@Override
public boolean onSingleTapUp(MotionEvent e) {
responsiveText.setText("onSingleTapUp");
return true;
}

@Override
public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {
responsiveText.setText("onScroll");
return true;
}

@Override
public void onLongPress(MotionEvent e) {
responsiveText.setText("onLongPress");
}

@Override
public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {
responsiveText.setText("onFling");
return true; }

/////////////// end gestures ////////////////////


@Override
public boolean onTouchEvent(MotionEvent event) {
this.gestureDetector.onTouchEvent(event);
return super.onTouchEvent(event);
}
  • 1

Java / Android Development

107,032 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator