code: public static int retrieveNavigationViewStyle(Context context, int styleResId) {
      TypedValue outValue = resolveAttributeFromId(context, styleResId);
      return outValue.resourceId;
    }
docs: Looks are current theme and retrieves the style
  for the given resId set in the theme.
  
  @param context    to retrieve the resolved attribute
  @param styleResId for the given style
  @return resolved style resource Id