package com.averi.worldscribe.utilities;

import android.content.Context;
import android.graphics.Color;
import android.support.design.widget.Snackbar;
import android.view.View;
import android.widget.TextView;

import com.averi.worldscribe.R;

/**
 * Created by mark on 20/06/16.
 */
public class ErrorMessager {
    public static void showSnackbarMessage(Context context, View parentView, String message) {
        Snackbar snackbar = Snackbar
                .make(parentView, message, Snackbar.LENGTH_LONG);
        View snackbarView = snackbar.getView();
        snackbarView.setBackgroundColor(AttributeGetter.getColorAttribute(context, R.attr.colorPrimary));
        TextView textView = (TextView) snackbarView.findViewById(android.support.design.R.id.snackbar_text);
        textView.setTextColor(Color.WHITE);
        snackbar.show();
    }
}

@@ -306,16 +306,165 @@
 sager %7B%0A
+    /**%0A     * The maximum number of lines that can be displayed by a Snackbar message.%0A     */%0A    public static final int SNACKBAR_MAX_LINES = 5;%0A%0A
     publ
@@ -960,16 +960,66 @@
 WHITE);%0A
+        textView.setMaxLines(SNACKBAR_MAX_LINES);%0A
         

Increase maximum lines for Snackbar messages