SnackBar with Action Button not aligned to text

2

Hello,

I would like to know why my SnackBar does not get the text aligned along with the ActionButton , this happens only when the text is too long. I am putting a sample image. Do you know how I can get SnackBar to keep your content aligned correctly? If I search "Android SnackBar" in Google Images, I see several examples where there is a two-line text ActionButton is correctly aligned with the text, not below, as in the photo. >

    
asked by anonymous 18.11.2015 / 01:40

1 answer

2

There are actually several examples, but in the examples the amount of large text is in the description and not in the text of the button, I believe that is the problem. The text of the action button must have fixed size and no line break.

Increase the description text and decrease the text of the button action.

An alternative to the action button text would be: Reload .

Or, you can search how to add an icon in the SnackBar and try to use it as a button, I know it's possible.

    
18.11.2015 / 02:05