@@ -0,0 +1,1414 @@
+/**%0A * %0A */%0Apackage org.nativescript.widgets;%0A%0Aimport android.content.Context;%0Aimport android.support.v4.view.ViewPager;%0Aimport android.util.AttributeSet;%0Aimport android.view.View;%0Aimport android.view.MotionEvent;%0Aimport android.view.KeyEvent;%0A%0A// See this thread for more information https://stackoverflow.com/questions/9650265%0Apublic class TabViewPager extends ViewPager %7B%0A    private boolean swipePageEnabled = true;%0A%0A    public TabViewPager(Context context) %7B%0A        super(context);%0A    %7D%0A%0A    public TabViewPager(Context context, AttributeSet attrs) %7B%0A        super(context, attrs);%0A    %7D%0A%0A    public void setSwipePageEnabled(boolean enabled) %7B%0A        this.swipePageEnabled = enabled;%0A    %7D%0A%0A    @Override%0A    public boolean onInterceptTouchEvent(MotionEvent event) %7B%0A        if (this.swipePageEnabled) %7B%0A            return super.onInterceptTouchEvent(event);%0A        %7D%0A%0A        return false;%0A    %7D%0A%0A    @Override%0A    public boolean onTouchEvent(MotionEvent event) %7B%0A        if (this.swipePageEnabled) %7B%0A            return super.onTouchEvent(event);%0A        %7D%0A%0A        return false;%0A    %7D%0A%0A    @Override%0A    public boolean executeKeyEvent(KeyEvent event) %7B%0A        if (this.swipePageEnabled) %7B%0A            return super.executeKeyEvent(event);%0A        %7D%0A%0A        return false;%0A    %7D%0A%0A    @Override%0A    public void setCurrentItem(int item) %7B%0A        super.setCurrentItem(item, this.swipePageEnabled);%0A    %7D%0A%7D%0A

add TabViewPager with switchable paging (#112)