Back to project page JayJayLab-Android-Demo.
The source code is released under:
Apache License
If you think the Android project JayJayLab-Android-Demo 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.jayjaylab.androiddemo.view; //from w w w . j a v a 2 s .com import android.content.Context; import android.util.AttributeSet; import android.view.MotionEvent; import roboguice.util.Ln; /** * Created by jongjoo on 11/12/14. */ public class CardView extends android.support.v7.widget.CardView { public CardView(Context context) { super(context); } public CardView(Context context, AttributeSet attrs) { super(context, attrs); } public CardView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); } @Override public boolean dispatchTouchEvent(MotionEvent event) { Ln.d("dispatchTouchEvent() : event : %s", event); final int action = event.getAction(); if(action == MotionEvent.ACTION_CANCEL || action == MotionEvent.ACTION_UP) { } else if(action == MotionEvent.ACTION_DOWN) { } return super.dispatchTouchEvent(event); } @Override public boolean onInterceptTouchEvent(MotionEvent event) { Ln.d("onInterceptTouchEvent() : event : %s", event); final int action = event.getAction(); if(action == MotionEvent.ACTION_CANCEL || action == MotionEvent.ACTION_UP) { } else if(action == MotionEvent.ACTION_DOWN) { } return super.onInterceptTouchEvent(event); } }