code: private void obtainMessageColor(@StyleRes final int themeResourceId) {
          TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
                  new int[]{R.attr.materialDialogMessageColor});
          int defaultColor = ThemeUtil
                  .getColor(getContext(), themeResourceId, android.R.attr.textColorSecondary);
          setMessageColor(typedArray.getColor(0, defaultColor));
      }
docs: Obtains the message color from a specific theme.
  
  @param themeResourceId
  The resource id of the theme, the message color should be obtained from, as an {@link
  Integer} value