Back to project page OneSearch.
The source code is released under:
MIT License
If you think the Android project OneSearch listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package chrisjluc.funsearch.ui.gameplay; /*w ww.ja v a2s . c o m*/ import android.content.Context; import android.support.v4.view.ViewPager; import android.util.AttributeSet; import android.view.MotionEvent; public class WordSearchViewPager extends ViewPager { private boolean enabled; public WordSearchViewPager(Context context, AttributeSet attrs) { super(context, attrs); this.enabled = false; } @Override public boolean onTouchEvent(MotionEvent event) { return this.enabled && super.onTouchEvent(event); } @Override public boolean onInterceptTouchEvent(MotionEvent event) { return this.enabled && super.onInterceptTouchEvent(event); } }