Home Toast Message doesn't overlay on floating window
Reply: 0

Toast Message doesn't overlay on floating window

user480 Published in June 19, 2018, 11:57 pm

I've created a floating window added by WindowManager with type: TYPE_SYSTEM_ALERT.

The context as variable named "mContext" in my custom floating view is referred to getApplicationContext() and I use it to make a toast:

Toast.makeText(mContext, "Hello", Toast.LENGTH_LONG).show();

However the toast message is overlaid by my full-screen floating window; it should overlay on my floating window instead. How can I do it?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.304289 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO