Android Multiline Snackbar
One can override the predefined value used for that in values.xml of the app
<integer name="design_snackbar_text_max_lines">5</integer>
This value is used by Snackbar by default.
Just set the maxLines
attribute of Snackbars Textview
View snackbarView = snackbar.getView();
TextView textView = (TextView) snackbarView.findViewById(android.support.design.R.id.snackbar_text);
textView.setMaxLines(5); // show multiple line
If you're using the more recent "com.google.android.material:material:1.0.0"
dependency, then you will use this: com.google.android.material.R.id.snackbar_text
to access the Snackbar's TextView.
You can use even R.id.snackbar_text
as well. it's work for me.