(This question extends beyond Get root view from current activity)
Using getWindow().getDecorView()
, I was able to get the drawing cache of the root view, however, if I incur any dialogs or toast, they are not presented in the root view.
How is Toast presented as a view? Where does it attach to? And is it possible to get the parent view's drawing cache as well?
Thanks
Toasts belongs to the operating system.(You may be passing your application's/activities context, but it's not actually bound to your activity once it is called) Hence they are not part of your activity and therefore can not be seen in the root view. A toast is shown even if your Activity is stopped or moved to background immediately after calling ToastObject.show();
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