Code example for TypedArray

Methods: getInt

0
		} 
	} 
 
	@Override 
	protected Object onGetDefaultValue(final TypedArray a, final int index) {
		return a.getInt(index, DEFAULT_PROGRESS);
	} 
 
	@Override 
	protected void onRestoreInstanceState(final Parcelable state) {
		// check whether we saved the state in onSaveInstanceState() 
		if (state == null || !state.getClass().equals(SavedState.class)) {
			// didn't save the state, so call superclass 
			super.onRestoreInstanceState(state);
			return; 
		} 
 
		// restore the state 
		final SavedState myState = (SavedState) state;
		setMinProgress(myState.minProgress);
		setMaxProgress(myState.maxProgress);