Guys, how can I get view object for a specific column or row or box? can anyone help me on this.
Thanks advance.
z
Zun
10/17/2022, 12:13 PM
What's your use case for needing this?
b
Bharath Kandula
10/17/2022, 12:19 PM
I have to send a one column UI as a image.
Use case:- I have a share button in my screen, once click on share button I have to send a image of the screen to other apps ( like what's app)
how can I get view object for a specific column or row or box?
There are no "view objects" in compose to "get".
For your use-case, you can set the @Composables you want as a ComposeView's content, and then measure, layout and draw it to a bitmap (which is more or less the approach of the library suggested above).
b
Bharath Kandula
10/17/2022, 2:32 PM
How can I take a screenshot for complete scrollable screen, it is posible? In jetpack compose.