Issue
I'm building a responsive layout with jetpack compose, and I want to test the responsiveness by dragging a corner of the emulator to resize it. However, it preserves the aspect ratio and just scales it, which doesn't help me at all. How can I easily test my responsive layout without having to create a bunch of virtual devices at different sizes?
Solution
I found a decent solution from the experimental developer setting "Enable freeform windows" and this article: https://www.floatingapps.net/freeform
Steps:
- Turn on developer mode
- In Settings -> Developer options, turn on these settings
under "Apps":
- "Force activities to be resizable"
- "Enable freeform windows"
- Reboot the virtual device
- Open your app
- Open "Overview" mode
- Long press on the app icon in the header and select "Freeform". You can now drag the corners of the app.
Answered By - frodo2975
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.