I am working with the Material Design components in the support library version 28.0.0.
I want to show a snackbar that when the text inside the action button is too long it be shown in a different line than the message of the snack bar.
Following the Material design documentation of these components it seems to be possible using the default snackbar as shown here:
https://material.io/design/components/snackbars.html#implementation
But using this code:
var snackbar:Snackbar = Snackbar.make(root, message, Snackbar.LENGTH_SHORT)
snackbar.setAction(action, View.OnClickListener { })
snackbar.show()
If the action text is long it doesn't move to the next line.
The root layout is a CoordinatorLayout.
So I do not know what I am missing in the snackbar to make it work.
Thanks!