繁体   English   中英

具有 API 29 的 Android 仿真器上不存在多显示选项

[英]Mutliple display option not present on Android Emulator with API 29

我需要模拟外部显示器。

我明白了:

fun getSecondDisplay(context: Context): Display? {
    val displayManager = context.getSystemService(Context.DISPLAY_SERVICE) as DisplayManager
    if (displayManager.displays == null || displayManager.displays.size <= 1) {
        return null
    }
    // We take the first additional screen
    return displayManager.displays[1]
}

“扩展控件”中不存在显示选项: 在此处输入图像描述

这是我的配置: 在此处输入图像描述

我看过这篇文章Multiple Displays option not displayed on Android Emulator 29.2.0 update但对我没有帮助

它适用于 API 30 上相同的“Nexus 10”模拟器配置:(

带有 x86_64 的模拟器,扩展控件“显示”不可见。

带有 x86 的仿真器,扩展控件“显示”可见

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM