Android Studio如何在没有纵横比约束的情况下调整模拟器大小

发布于 2025-02-01 23:28:43 字数 110 浏览 2 评论 0原文

我正在使用JetPack组合构建响应式布局,我想通过拖动仿真器的角度调整大小来测试响应能力。但是,它保留了纵横比并扩展了它,这根本没有帮助。我如何轻松地测试我的响应式布局,而不必创建不同尺寸的一堆虚拟设备?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

青衫负雪 2025-02-08 23:28:43

我从实验开发人员设置“启用自由式窗口”和本文中找到了一个不错的解决方案: https://wwwww.floingapps .net/freeform

步骤:

  1. 在设置中打开开发人员模式
  2. - >开发人员选项,打开这些设置
    在“应用程序”下:

    • “强制活动可以解决”
    • “启用自由形式窗口”
  3. 重启虚拟设备
  4. 打开应用程序
  5. 打开“概述”模式“概述”模式
  6. 在标题中的应用图标上长,然后选择“ freeform”。您现在可以拖动应用程序的角落。

I found a decent solution from the experimental developer setting "Enable freeform windows" and this article: https://www.floatingapps.net/freeform

Steps:

  1. Turn on developer mode
  2. In Settings -> Developer options, turn on these settings
    under "Apps":

    • "Force activities to be resizable"
    • "Enable freeform windows"
  3. Reboot the virtual device
  4. Open your app
  5. Open "Overview" mode
  6. Long press on the app icon in the header and select "Freeform". You can now drag the corners of the app.
叹沉浮 2025-02-08 23:28:43

也许这会有所帮助: Resiziesable Emulator

鳗鱼| 2022.1.1

”

Maybe this will help: Resizable Emulator

It is available in Android Studio Electric Eel | 2022.1.1

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文