code: private void obtainDividerColor(@StyleRes final int themeResourceId) {
          TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
                  new int[]{R.attr.materialDialogDividerColor});
          int defaultColor = ContextCompat.getColor(getContext(), R.color.divider_color_light);
          setDividerColor(typedArray.getColor(0, defaultColor));
      }
docs: Obtains the color of dividers from a specific theme.
  
  @param themeResourceId
  The resource id of the theme, the color should be obtained from, as an {@link
  Integer} value