src/main/java/de/blau/android/util/Snack.java
/**
     * Display a warning toast underneath the top action bar
     * 
     * @param context Android Context that called this
     * @param msgRes the message resource to display
     */
Display a warning toast underneath the top action bar

@param context Android Context that called this
@param msgRes the message resource to display
Display a warning toast underneath the top action bar @param context Android Context that called this @param msgRes the message resource to display
public static void toastTopWarning(@Nullable Context context, int msgRes) {
        if (context != null) {
            toastTop(context, msgRes, ThemeUtils.getStyleAttribColorValue(context, R.attr.snack_warning, R.color.material_yellow), Toast.LENGTH_LONG);
        }
    }
public static void toastTopWarning ( @ Nullable Context context , int msgRes ) { if ( context != null ) { toastTop ( context , msgRes , ThemeUtils . getStyleAttribColorValue ( context , R . attr . snack_warning , R . color . material_yellow ) , Toast . LENGTH_LONG ) ; } }
Display a warning toast underneath the top action bar
Display a warning toast underneath the top action bar