I know to set the location at which the toast should appear on the screen with setGravity. But when i set toast.setGravity(Gravity.TOP, 0, 0). It still inside the content view. Its possible to show the toast over content view/on status bar?
It's not possible and you shouldn't even try to do that. You can hide status bar using immersive mode and then you could display toasts wherever you want on screen, since your activity will be fullscreen
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With