Code example for ImageButton

Methods: setEnabledsetImageDrawable

0
		mPlaybackCurrentTime.setText(timeText);
 
	} 
 
	void setPlayPauseButton(int id) {
		mPlayPauseButton.setImageDrawable(mActivity.getResources().getDrawable(
				id));
	} 
 
	public void displayPlaybackDialog() { 
		if (mPlayer != null)
			mPlayer.release();
 
		mPlayer = new MediaPlayer();
		mPlayerIsPrepared = false;
		try { 
 
			setPlayPauseButton(android.R.drawable.ic_media_pause);
			mPlayPauseButton.setEnabled(false);
			mPlaybackDialog.show();
			mPlaybackDuration.setText("opening");
			mSeekBar.setEnabled(false);
			updateProgressDisplay(); 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE