src/main/java/de/blau/android/util/Snack.java
/**
     * Display a snackbar with an informational message
     * 
     * @param v view to display the snackbar on
     * @param snackbar the Snackbar
     */
Display a snackbar with an informational message

@param v view to display the snackbar on
@param snackbar the Snackbar
Display a snackbar with an informational message @param v view to display the snackbar on @param snackbar the Snackbar
private static void barInfo(@NonNull View v, @NonNull Snackbar snackbar) {
        try {
            snackbar.getView().setBackgroundColor(ThemeUtils.getStyleAttribColorValue(v.getContext(), R.attr.snack_info, R.color.material_teal));
            snackbar.addCallback(callback);
            enqueueInfo(snackbar);
        } catch (IllegalArgumentException e) {
            Log.e(DEBUG_TAG, "barInfo got " + e.getMessage());
        }
    }
private static void barInfo ( @ NonNull View v , @ NonNull Snackbar snackbar ) { try { snackbar . getView ( ) . setBackgroundColor ( ThemeUtils . getStyleAttribColorValue ( v . getContext ( ) , R . attr . snack_info , R . color . material_teal ) ) ; snackbar . addCallback ( callback ) ; enqueueInfo ( snackbar ) ; } catch ( IllegalArgumentException e ) { Log . e ( DEBUG_TAG , "barInfo got " + e . getMessage ( ) ) ; } }
Display a snackbar with an informational message
Display a snackbar with an informational message