-
-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Modifier API: Capture from canvas directly without AndroidView
#100
Comments
https://twitter.com/riggaroo/status/1693961082761625825?t=kfgghffcZXsuhus0txy90w&s=19 Think you saw this already |
AndroidView
AndroidView
I tested the code you put in the #103 and the problem with capturing scrollable content continues, even though you mentioned that the new API solved this problem. Is it really working for you? Is there anything else that needs to be done to make Column(Modifier.verticalScroll()) work? It also doesn't work with documentation snippet. |
@jsericksk Yes, when I tested, it worked nicely. Can you share me a snippet or a sample? |
Sorry, @PatilShreyas. I realized that when I was testing, I was applying Modifier.capturable() to the parent component and not to the capturable component directly, so I was only capturing the currently visible part. It's working normally now. Looking forward to the next release! |
This issue has been fixed and released in version 2.0.0. |
Discussed in #98
Originally posted by yschimke June 8, 2023
Could Capturable use this alpha API to capture the image instead of an AndroidView?
https://cs.android.com/androidx/platform/frameworks/support/+/f60a1149f00d6cc5972e9bd4057eb4a15505b468:compose/ui/ui-graphics/samples/src/main/java/androidx/compose/ui/graphics/samples/DrawScopeSample.kt;l=131
The text was updated successfully, but these errors were encountered: