横版布局的RecyclerView的回弹效果实现
直接上代码:
package com.ahtelit.zbv.myapplication;
import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.animation.TranslateAnimation;
import android.widget.HorizontalScrollView;
/**
* Created by Administrator on 2018/5/16.
* qzx
*/
public class MyHorizontalScrollView extends HorizontalScrollView{
private View inner;
public MyHorizontalScrollView(Context context) {
this(context,null);
}
public MyHorizontalScrollView(Context context, AttributeSet attrs) {
this(context, attrs,0);
}
public MyHorizontalScrollView(Context context, AttributeSet attrs,