0

I'm using Crouton in Android. If the user is not logged in, an infinite-duration Crouton-Toast is shown on the top of my Activity. The problem is, that If the user receives a chat-message (login not required), this message should show up as a crouton for some seconds as well.

What for options do I have to show both toasts? I would like the idea to "stack" the toasts. So the "not logged in"-Toast is shown on top and if the user receives a message, than this message would be displayed below the other toast. Is this possible? If yes - what do I have to do?

Option 2: Displaying the chat-message and hide the "not logged in" toast. After hiding the chat-message, the logged-in-toast should reappear.

Why is the second toast not shown if they both affect the same viewgroup? Shouldn't this toast either replace or hide the other toast?

Frame91
  • 3,670
  • 8
  • 45
  • 89

1 Answers1

0

As it is currently implemented, only one Crouton can be shown at a time. There is a pull request, which can not be merged in it's existing form.

Ben Weiss
  • 17,182
  • 6
  • 67
  • 87