Code example for SeekBar

Methods: setMaxsetProgress

-1
			return layout;
		} 
	@Override 
		protected void onBindDialogView(View v) {
			super.onBindDialogView(v);
			mSeekBar.setMax(mMax);
			mSeekBar.setProgress(mValue);
		} 
	@Override 
		protected void onSetInitialValue(boolean restore, Object defaultValue)
		{ 
			super.onSetInitialValue(restore, defaultValue);
			if (restore)
				mValue = shouldPersist() ? getPersistedInt(mDefault) : 0;
			else 
				mValue = (Integer)defaultValue;
		} 
 
	public void onProgressChanged(SeekBar seek, int value, boolean fromTouch)
	{ 
Contextual code suggestions in your IDE  Get Codota for Java