Code example for ProgressBar

Methods: setEnabled

0
        } 
        if (mPrevButton != null) {
            mPrevButton.setEnabled(enabled && mPrevListener != null);
        } 
        if (mProgress != null) {
            mProgress.setEnabled(enabled);
        } 
        disableUnsupportedButtons(); 
        super.setEnabled(enabled);
    } 
 
    private View.OnClickListener mRewListener = new View.OnClickListener() {
        public void onClick(View v) { 
            if (mPlayer == null) { 
                return; 
            } 
             
            int pos = mPlayer.getCurrentPosition(); 
            pos -= 5000; // milliseconds 
            mPlayer.seekTo(pos); 
            setProgress();