public void setSeekBarMaxValue(int maxValue) {
    mMaxValue = maxValue;
  }
A simple Preference containing a SeekBar in order to select a size
samples/scrollperf/src/main/java/com/facebook/samples/scrollperf/preferences/SizePreferences.java