Sergey Y.

    Sergey Y.

    1 year ago
    Hi. I should note that I started to notice a growing number of questions about how to turn Compose widget into a bitmap(in the manner
    View#drawingCache
    we had with legacy
    View
    system). And I didn't understand why, until now. Now I am going to raise this issue too. 😄 What I'm interested in: (see attached images 🧵) The question: Is it possible to capture the underlying layers behind the widget in order to manipulate the pixels later? Note: It is not always possible to wrap every set of composable widgets in an AndroidView and use the rendering cache in the "old" way. Is it planned to provide such functionallity with future versions of Compose(
    1.1
    ,
    1.2
    ,...)? And is it technically possible at all with Compose? Thanks.
    examples with blur just to illustrate, there are other use cases
    ...and yes, I read similar questions and solutions(or lack thereof) before writing this post. Rather, it serves to attract attention and demonstrate meaningful interest in an issue, to fill in the information space, in other words.
    Chachako

    Chachako

    1 year ago
    AFAIK, there is no way, this is related issue, you can star it to improve priority https://issuetracker.google.com/issues/180881629