Wrapping content height on a SnackBar

is there any way to make a SnackBar wrapping its text content?

You can look up my problem below:

As you can see the text ends at "contact us at...." and it should display the entire message.

Thank you!


I believe that snackbar by default limits you to only 2 lines.

One thing that you could try is setting the textview inside snackbar to be multiline. Like so:

View snackbarView = snackbar.getView();
TextView textView = (TextView) snackbarView.findViewById(android.support.design.R.id.snackbar_text);
textView.setMaxLines(5);  //set the max lines for textview to show multiple lines

Let me know if that works or not

Need Your Help

IDE comment keywords

eclipse ide comments rubymine todo

So I only recently discovered the TODO comment. For those of you that don't know, most modern IDE's will recognize this word in a comment and flag the comment line a different colour so It stands o...

How to use Semantic UI CDN?

cdn semantic-ui

How to include Semantic UI to HTML page using CDN? The CDN link is https://cdnjs.com/libraries/semantic-ui, but how to use it?