Code example for PagerTabStrip

0
		super(context);
		this.appContext = context.getApplicationContext();
	} 
 
	public MyPagerTabStrip(Context context, AttributeSet attrs) {
		super(context, attrs);
		this.appContext = context.getApplicationContext();
	} 
 
	@Override 
	public boolean onTouchEvent(MotionEvent ev) {
		Toast.makeText(this.appContext, ev.toString(), Toast.LENGTH_SHORT).show();
		Log.i(this.toString(), "onTouchEvent: " + ev.getX() + ", " + ev.getY());
		return super.onTouchEvent(ev);
	} 
 
	@Override 
	protected void onDraw(Canvas canvas) {
		super.onDraw(canvas);
		Log.i(this.toString(), "onDraw: " + canvas.getWidth() + ", " + canvas.getHeight());
	}