Code example for PointF

0
		mVideoList.addHeaderView(headerView);
		mShowPager = (ViewPager) headerView.findViewById(R.id.pager);
		mShowPager.setOnTouchListener(new OnTouchListener() {
			@Override 
			public boolean onTouch(View v, MotionEvent event) {
				PointF downP = new PointF();
				PointF curP = new PointF();
				int act = event.getAction();
				if (act == MotionEvent.ACTION_DOWN
						|| act == MotionEvent.ACTION_MOVE
						|| act == MotionEvent.ACTION_UP) {
					((ViewGroup) v).requestDisallowInterceptTouchEvent(true);
					if (downP.x == curP.x && downP.y == curP.y) {
						return false; 
					} 
				} 
				return false; 
			} 
		}); 
		mShowIndicator = (UnderlinePageIndicator) headerView
				.findViewById(R.id.indicator);