Skip to content

[Snackbar] Long action text hides message text (with maxActionInlineWidth) #781

@dpastor

Description

@dpastor

Description: When showing an snackbar with a long action text and with a message text that does not initially have more than 2 lines, layout is not set with vertical orientation, so action text ends up hiding almost the message. This also happens with maxActionInlineWidth set.

This does not happen when message text takes in any case more than 1 line, independently of the length of action text.

Screen Shot 2019-11-20 at 16 14 51 Screen Shot 2019-11-20 at 16 17 05

Expected behavior: Component changes to vertical orientation when action button is wider than 128dps and the message text needs more than 1 line to be painted (After action button is drawn), like in second screenshot.

Android API version: Tested on 28 and 21. Both with the issue.

Material Library version: 1.0.0 (Latest stable)

Device: OnePlus 5T

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions