Code example for AbsListView

Methods: getWidth, invalidate

0
                // Fall through 
            case STATE_DRAGGING:
                mHandler.removeCallbacks(mScrollFade);
                break; 
            case STATE_EXIT:
                int viewWidth = mList.getWidth();
                mList.invalidate(viewWidth - mThumbW, mThumbY, viewWidth, mThumbY + mThumbH);
                break; 
        } 
        mState = state;
    } 
     
    public int getState() { 
        return mState;
    } 
     
    private void resetThumbPos() { 
        final int viewWidth = mList.getWidth();
        // Bounds are always top right. Y coordinate get's translated during draw 
        // For reference, the thumb itself is approximately 50% as wide as the underlying graphic 
        // so 1/6th of the width means the thumb is approximately 1/12 the width.