Code example for Scroller

0
    } 
 
    public HScrollLayout(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
 
        mScroller = new Scroller(context);
 
        mCurScreen = mDefaultScreen;
        mTouchSlop = ViewConfiguration.get(getContext()).getScaledTouchSlop() * 4;
 
        setTouchState(TOUCH_STATE_REST);
    } 
 
    @Override 
    protected void onLayout(boolean changed, int l, int t, int r, int b) {
 
        int childLeft = 0;
        final int childCount = getChildCount();
 
        for (int i = 0; i < childCount; i++) {
Connect your IDE to all the code out there  Get Codota for Java