Code example for AlertDialog.Builder

Methods: setView

0
 
		mSeekBar.setMax(mStartMax);
		mSeekBar.setProgress(mStartProgress);
		layout.addView(mSeekBar);
 
		builder.setView(layout);
		super.onPrepareDialogBuilder(builder);
	} 
 
	public void setDefaults(int progress, int max) {
		mStartMax = max;
		mStartProgress = progress;
	} 
 
	public void setSaver(Saver saver) {
		mSaver = saver;
	} 
 
	@Override 
	protected void onDialogClosed(boolean positiveResult) {
		super.onDialogClosed(positiveResult);