android - 如何测试 Galaxy S8 的 android.max_aspect

标签 android android-emulator android-testing

根据这个 https://android-developers.googleblog.com/2017/03/update-your-app-to-take-advantage-of.html

我需要设置最大纵横比。模拟器仍然没有 S8 设备,所以我在硬件配置文件中将 5.8"设置为 2960 x 1440 分辨率。 我的应用程序看起来不错,没有设置 maz_aspect,它会填满屏幕而没有黑线,如谷歌文章中所示。

如何测试新的 2.1 口粮?

最佳答案

你可以设置你的targetSdkVersion = 24,默认已经可以了。

关于android - 如何测试 Galaxy S8 的 android.max_aspect,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43249831/

相关文章:

android - 在android中为任何 View 使用3个垂直点

java - Parceler 和 SimpleXml 如 Parceler 的自述文件所述

Mac崩溃后Android模拟器状态栏渲染困惑

android - 安装 React Navigation 和手势处理程序后出错

android - 使用 Material Design 主题进行 fragment 隔离测试

android - 如何将 TapTargetView 与 Jetpack compose 结合使用

java - 如何修复 ImageView 引起的 java.lang.OutOfMemoryError 错误?

android - Genymotion 中的 Lollipop 虚拟机 - ARM 翻译可能无法正常工作

android - Android Studio 中测试支持库的来源

android - FragmentScenario 必须实现 OnFragmentInteractionListener