https://kotlinlang.org logo
#compose
Title
# 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.
"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
2 Views