fonix232
fonix232

Reputation: 2195

Multiple Snackbars

Is it possible to display, say, 2, 3 or 4 Snackbars (stacked) at the same time? I'm using the official Google Design and AppCompat support libraries right now, and would come handy (I'm using Snackbars to display status of the app - network status, power status, training mode, etc., which are all important information, have their own color, and I cannot concatenate them into one).

My snackbars right now are persistent, without action, and I do not plan to change this.

Upvotes: 7

Views: 10343

Answers (3)

D_K
D_K

Reputation: 168

you should use bottomsheet,so that you can achieve your desired output.refer this link

Upvotes: 1

Milan Jurkulak
Milan Jurkulak

Reputation: 645

Yes. But not a snackbar. Just made your own recyclerview with wrap content height and attach it to a decor view of an activity. Set gravity bottom. Any item before removed from recyclerview will be part of.

Upvotes: 2

vincenth
vincenth

Reputation: 1792

According to the doc : "Only one snackbar may be displayed at a time."

Upvotes: 9

Related Questions