@Override
  protected Object onGetDefaultValue(TypedArray a, int index) {
    return a.getInt(index, 0);
  }
A simple Preference containing a SeekBar in order to select a size
samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/preferences/SizePreferences.java