Code example for PagerTitleStrip

0
    public ProjectSelectorStrip(Context context) {
        this(context, null);
    } 
 
    public ProjectSelectorStrip(Context context, AttributeSet attrs) {
        super(context, attrs);
    } 
 
  
    @Override 
    public boolean onTouchEvent(MotionEvent ev) {
        final int action = ev.getAction();
 
        // Any tap within touch slop to either side of the current item 
        // will scroll to prev/next. 
        final float x = ev.getX();
        final float y = ev.getY();
         
        Log.d(TAG, x + " " + y);
        switch (action) {
Contextual code suggestions in your IDE  Get Codota for Java