我的PDF渲染器有以下问题 -
public boolean onTouchEvent(MotionEvent touchevent){
int actionId = touchevent.getPointerCount();
if (actionId == 1 && touchevent.getPointerCount() == 2) {
switch (touchevent.getAction()) {
case MotionEvent.ACTION_DOWN:
// when user first touches the screen to swap
{
flag = 0;
System.out.println("ACTION_DOWN - "
+ touchevent.getPointerCount());
lastX = touchevent.getX();
break;
}
// Finger went up
case MotionEvent.ACTION_UP: {
flag = 0;
float currentX = touchevent.getX();
System.out.println("ACTION_UP - "
+ touchevent.getPointerCount());
// if left to right swipe on screen - previous page
if …Run Code Online (Sandbox Code Playgroud)