Code example for AlertDialog.Builder

Methods: setView

0
        seek_bar.setOnSeekBarChangeListener(this);
        seek_bar.setProgress(getPersistedInt(0)); 
         
        layout.addView(seek_bar);
         
        builder.setView(layout);
        super.onPrepareDialogBuilder(builder);
    } 
 
    protected void onDialogClosed(boolean positiveResult) {
        if(positiveResult){
        	persistInt(seek_bar.getProgress());
        	this.getOnPreferenceChangeListener().onPreferenceChange(this, seek_bar.getProgress());
        } 
         
    } 
    public void setMax(int max) {
		this.max = max;
	} 
	public int getMax() { 
Experience pair programming with AI  Get Codota for Java