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

@param context Android Context that called this
@param msgRes the message resource to display
@param color background color of the message
@param duration how long to display the message
Display a toast underneath the top action bar @param context Android Context that called this @param msgRes the message resource to display @param color background color of the message @param duration how long to display the message
private static void toastTop(@Nullable Context context, int msgRes, int color, int duration) {
        if (context != null) {
            toastTop(context, context.getResources().getString(msgRes), color, duration);
        }
    }
private static void toastTop ( @ Nullable Context context , int msgRes , int color , int duration ) { if ( context != null ) { toastTop ( context , context . getResources ( ) . getString ( msgRes ) , color , duration ) ; } }
Display a toast underneath the top action bar
Display a toast underneath the top action bar