[英]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.