libandroid-navigation-ui/src/main/java/com/mapbox/services/android/navigation/ui/v5/ThemeSwitcher.java
public static int retrieveNavigationViewThemeColor(Context context, int resId) {
    TypedValue outValue = obtainTypedValue(context, resId);
    if (outValue.type >= TypedValue.TYPE_FIRST_COLOR_INT
      && outValue.type <= TypedValue.TYPE_LAST_COLOR_INT) {
      return outValue.data;
    } else {
      return ContextCompat.getColor(context, outValue.resourceId);
    }
  }
/**
   * Looks are current theme and retrieves the color attribute
   * for the given set theme.
   *
   * @param context to retrieve the set theme and resolved attribute and then color res Id with {@link ContextCompat}
   * @return color resource identifier for primary theme color
   */
Looks are current theme and retrieves the color attribute
for the given set theme.

@param context to retrieve the set theme and resolved attribute and then color res Id with  ContextCompat
@return color resource identifier for primary theme color
Looks are current theme and retrieves the color attribute for the given set theme . @param context to retrieve the set theme and resolved attribute and then color res Id with ContextCompat @return color resource identifier for primary theme color
public static int retrieveNavigationViewThemeColor(Context context, int resId) {
    TypedValue outValue = obtainTypedValue(context, resId);
    if (outValue.type >= TypedValue.TYPE_FIRST_COLOR_INT
      && outValue.type <= TypedValue.TYPE_LAST_COLOR_INT) {
      return outValue.data;
    } else {
      return ContextCompat.getColor(context, outValue.resourceId);
    }
  }
public static int retrieveNavigationViewThemeColor ( Context context , int resId ) { TypedValue outValue = obtainTypedValue ( context , resId ) ; if ( outValue . type >= TypedValue . TYPE_FIRST_COLOR_INT && outValue . type <= TypedValue . TYPE_LAST_COLOR_INT ) { return outValue . data ; } else { return ContextCompat . getColor ( context , outValue . resourceId ) ; } }
Looks are current theme and retrieves the color attribute
 for the given set theme.
Looks are current theme and retrieves the color attribute for the given set theme .