code: private void obtainFullscreen(@StyleRes final int themeResourceId) {
          TypedArray typedArray = getContext().getTheme().obtainStyledAttributes(themeResourceId,
                  new int[]{R.attr.materialDialogFullscreen});
          setFullscreen(typedArray.getBoolean(0, false));
      }
docs: Obtains the boolean value, which specified whether the dialog should be shown fullscreen, or
  not, from a specific theme.
  
  @param themeResourceId
  The resource id of the theme, the boolean value should be obtained from, as an {@link
  Integer} value