code: private void obtainShowProgress(@NonNull final TypedArray typedArray) {
          boolean defaultValue = getContext().getResources()
                  .getBoolean(R.bool.seek_bar_preference_default_show_progress);
          showProgress(
                  typedArray.getBoolean(R.styleable.SeekBarPreference_showProgress, defaultValue));
      }
docs: Obtains the boolean value, which specifies whether the progress of the seek bar should be
  shown, from a specific typed array.
  
  @param typedArray
  The typed array, the boolean value should be obtained from, as an instance of the
  class {@link TypedArray}. The typed array may not be null