[英]Mutliple display option not present on Android Emulator with API 29
I need to emulate an external display.我需要模拟外部显示器。
I get it with:我明白了:
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]
}
Dispalys option is not present in "Extended controls": “扩展控件”中不存在显示选项:
I had a look at this post Multiple Displays option not showing on Android Emulator 29.2.0 update but doesn't help me我看过这篇文章Multiple Displays option not displayed on Android Emulator 29.2.0 update但对我没有帮助
It works with a same "Nexus 10" emulator config on API 30:(它适用于 API 30 上相同的“Nexus 10”模拟器配置:(
Emulator with x86_64, extended control "Displays" not visible.带有 x86_64 的模拟器,扩展控件“显示”不可见。
Emulator with x86, extended control "Displays" is visible.带有 x86 的仿真器,扩展控件“显示”可见。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.