February 2015
Intermediate to advanced
780 pages
19h 22m
English
public class PanScrollView extends FrameLayout { // Fling components private Scroller mScroller; private VelocityTracker mVelocityTracker; /* Positions of the last motion event */ private float mLastTouchX, mLastTouchY; /* Drag threshold */ private int mTouchSlop; /* Fling Velocity */ private int mMaximumVelocity, mMinimumVelocity; /* Drag Lock */ private boolean mDragging = false; public PanScrollView(Context context) { super(context); init(context); } public PanScrollView(Context context, AttributeSet attrs) { super(context, attrs); init(context); } public PanScrollView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); ...
Read now
Unlock full access