code: private void obtainShowValueAsSummary(@NonNull final TypedArray typedArray) {
          boolean defaultValue = getContext().getResources()
                  .getBoolean(R.bool.dialog_preference_default_show_value_as_summary);
          showValueAsSummary(typedArray
                  .getBoolean(R.styleable.DialogPreference_showValueAsSummary, defaultValue));
      }
docs: Obtains the boolean value, which specifies whether the currently persisted value should be
  shown as the summary, instead of the given summaries, 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