Closed eddnav closed 3 weeks ago
I can't say for sure, but I think the reason why you can't capture a transparent screenshot is that you are using the default activity. How about specifying RoborazziTransparentActivity when you use createComposeRule()?
I can't say for sure, but I think the reason why you can't capture a transparent screenshot is that you are using the default activity. How about specifying RoborazziTransparentActivity when you use createComposeRule()?
Yep! this did the trick. Very much appreciated. It might be a good idea to include RoborazziTransparentActivity
somewhere in the readme though! In any case, thank you!
In my code I have:
This works well, test don't hang due to Lottie, however, this causes my snapshots to have a background:
What could be causing this?
If instead I just do:
My snapshots render as expected:
For everything except Composables that include Lottie of course because they never finish.
I noticed a related issue here: https://github.com/takahirom/roborazzi/issues/166. This user has the exact same issue and he resolved it by using my initial approach, but for me it's critical that my backgrounds are transparent.