src/main/java/de/blau/android/util/Snack.java
/**
     * Display a snackbar with an error message with a possible action
     * 
     * @param activity activity calling us
     * @param msgRes message to display
     * @param actionRes action textRes resource for the text of an action
     * @param listener called when action is selected
     */
Display a snackbar with an error message with a possible action

@param activity activity calling us
@param msgRes message to display
@param actionRes action textRes resource for the text of an action
@param listener called when action is selected
Display a snackbar with an error message with a possible action @param activity activity calling us @param msgRes message to display @param actionRes action textRes resource for the text of an action @param listener called when action is selected
public static void barError(Activity activity, int msgRes, int actionRes, View.OnClickListener listener) {
        if (activity != null) {
            barError(activity.findViewById(android.R.id.content), msgRes, actionRes, listener);
        }
    }
public static void barError ( Activity activity , int msgRes , int actionRes , View . OnClickListener listener ) { if ( activity != null ) { barError ( activity . findViewById ( android . R . id . content ) , msgRes , actionRes , listener ) ; } }
Display a snackbar with an error message with a possible action
Display a snackbar with an error message with a possible action