Hi everyone, Can someone help me with taking a scr...
# compose
m
Hi everyone, Can someone help me with taking a screenshot in jetpack compose scrollable column such that the result image contains the invisible part of the screen as well.?
s
What invisble part?
You mean you want to screenshot the whole list?
h
My hack was basically wrapping the whole thing in a FrameLayout with the help of
AndroidView
, and then taking regular "View screenshot" of that FrameLayout
Ofc, this doesn't work with composables that take advantage of Subcomposition, like LazyColumn, etc.
j
If a preview is enough for you, you could configure the preview to be as high as you need, then right click it and copy
c
Android 12 apparently has built in support for scrolling screenshots if that satisfies your requirements.
p
is there a possibility to make a bitmap in running app, so it could be shared?