Code example for OverScroller

0
        super(context, attrs, defStyle);
        init(); 
    } 
 
    void init() { 
        mScroller = new OverScroller(getContext());
        mGestureDetector = new GestureDetector(getContext(), mGestureListener);
        setOnTouchListener(this);
    } 
 
    @Override 
    public ListAdapter getAdapter() {
        return mAdapter;
    } 
 
    @Override 
    public View getSelectedView() {
        return null; 
    } 
 
    @Override