Android Screenshot API with dialogs and toasts, who is their parent?

(This question is beyond the scope of Get root view from current activity )

Using getWindow().getDecorView(), I was able to get the drawing cache of the root view, however, if I find any dialogs or toasts, they do not appear in the root view.

What does a toast look like in a presentation? Where is he attached? And is it possible to get the drawing cache of the parent view?

thank

+5
source share
1 answer

. (, /, ). , . , ​​ ToastObject.show();

+1

All Articles