Code example for TypedArray

Methods: getInt

0
	} 
 
	@Override 
	protected Object onGetDefaultValue(TypedArray a, int index)
	{ 
		return a.getInt(index, 100);
	} 
 
	@Override 
	protected void onSetInitialValue(boolean restoreValue, Object defaultValue)
	{ 
		mValue = restoreValue ? getPersistedInt(mValue) : (Integer)defaultValue;
    } 
 
	/** 
	 * Create the summary for the given value. 
	 * 
	 * @param value The force threshold. 
	 * @return A string representation of the threshold. 
	 */ 
	private String getSummary(int value)