Join Slack
Does the `ComposeTestRule` have a way to set the devices orientation? I have searched and can’t seem...
# compose
d
dewildte
02/22/2023, 12:57 AM
Does the
ComposeTestRule
have a way to set the devices orientation? I have searched and can’t seem to find anything about it so I came here as a last ditch effort.
e
ephemient
02/22/2023, 1:04 AM
https://google.github.io/accompanist/testharness/
ephemient
02/22/2023, 1:05 AM
"device orientation" isn't one of the things that Compose handles, but you can override the size to have whatever aspect ratio you like
d
dewildte
02/22/2023, 1:08 AM
Oh man, this TestHarness things is a great idea!!
e
ephemient
02/22/2023, 1:15 AM
yes, it's a recent addition, and quite nice.
https://androiddev.social/@alex_vanyo/109367168209916730
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by