jmp-12 / SuperToasts

A library that extends the Android toast framework.
Apache License 2.0
2.68k stars 500 forks source link

Toasts similar to iOS "touch to dismiss" #40

Open THEMrFill opened 10 years ago

THEMrFill commented 10 years ago

I'm working on an Android app beside iOS developers, and the client wants a toast to appear similar to the way iOS can handle them, i.e. visible until something on the screen is touched (within the app's display, ignoring Notification bar & on-screen buttons)

Is it possible to have the "touch to dismiss" option to have the touch full-screen, and the toast to remain visible until the touch event?

Thanks in advance

ghost commented 10 years ago

THEMrFill,

That is an excellent idea, it is also similar to the Gmail app. I'm extremely busy with schoolwork for the summer so I'm not sure when I'll be able to work on it but I definitely like the suggestion! I imagine some sort of single shot touch listener added to the parent layout would do the trick but it would be easier if the library could set this up with a simple call instead of the dev having to handle it. I'll be sure to get right on it as soon as I get the chance, thanks again for the suggestion!