Code example for TypedArray

Methods: getString

0
		} 
	} 
 
	@Override 
	protected Object onGetDefaultValue(TypedArray a, int index) {
		return a.getString(index);
	} 
 
	@Override 
	protected void onSetInitialValue(boolean restoreValue, Object defaultValue) {
		int defValue = mMin;
		if (defaultValue != null) {
			defValue = Integer.parseInt(defaultValue.toString());
		} 
		setValue(restoreValue ? getPersistedInt(mValue) : defValue);
	} 
 
	@Override 
	protected Parcelable onSaveInstanceState() {
		final Parcelable superState = super.onSaveInstanceState();
		if (isPersistent()) {