Back to project page nxt-remote-controller.
The source code is released under:
MIT License
If you think the Android project nxt-remote-controller 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 com.gc.materialdesign.views; // w ww .j ava2 s .co m import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.ViewGroup; public class ScrollView extends android.widget.ScrollView { /* * This class avoid problems in scrollviews with elements in library * Use it if you want use a ScrollView in your App * ??????scrollView?????????item?????????????ScrollView */ public ScrollView(Context context, AttributeSet attrs) { super(context, attrs); } @Override public boolean onTouchEvent(MotionEvent ev) { // if(!onInterceptTouchEvent(ev)){ for(int i = 0; i < ((ViewGroup)getChildAt(0)).getChildCount(); i++){ try { CustomView child =(CustomView) ((ViewGroup)getChildAt(0)).getChildAt(i); if(child.isLastTouch){ child.onTouchEvent(ev); return true; } } catch (ClassCastException e) { } } // } return super.onTouchEvent(ev); } }