Back to project page PinterestLikeApp.
The source code is released under:
MIT License
If you think the Android project PinterestLikeApp 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.dreamtale.pintrestlike.widget; /* w ww. j a v a 2 s . c o m*/ import android.content.Context; import android.util.AttributeSet; import android.util.Log; import android.widget.ScrollView; public class PinterestScrollView extends ScrollView { private final static String LOG_TAG = "PinterestScrollView"; public PinterestScrollView(Context context) { this(context, null); } public PinterestScrollView(Context context, AttributeSet attrs) { super(context, attrs); } public PinterestScrollView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } @Override protected void onScrollChanged(int l, int t, int oldl, int oldt) { Log.d(LOG_TAG, "onScrollChanged y " + t + " old y " + oldt); super.onScrollChanged(l, t, oldl, oldt); } @Override protected void onOverScrolled(int scrollX, int scrollY, boolean clampedX, boolean clampedY) { Log.d(LOG_TAG, " scroll y " + scrollY + " clampedy " + clampedY); super.onOverScrolled(scrollX, scrollY, clampedX, clampedY); } }