[英]How to move activity from one display to another
Android started to support Multi-display from Android 8.0, The document described as below: Android 从 Android 8.0 开始支持多屏显示,文档描述如下:
If an activity supports multi-window mode and is running on a device with multiple displays, users can move the activity from one display to another.
如果 Activity 支持多窗口模式并且在具有多个显示器的设备上运行,则用户可以将 Activity 从一个显示器移动到另一个显示器。 https://developer.android.com/about/versions/oreo/android-8.0#mds
https://developer.android.com/about/versions/oreo/android-8.0#mds
I've tried to start an activity withe the flag "Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT", and "setLaunchDisplayId" with secondary display.我尝试使用“Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT”标志和带有辅助显示的“setLaunchDisplayId”开始一项活动。 The activity I started is shown on the secondary display, but how can I move the activity from the secondary display to my phone?
我开始的活动显示在辅助显示屏上,但是如何将活动从辅助显示屏移动到我的手机?
I don't have enough rep to comment, I don't have an answer for you but I've come across some good reading material for multiple display.我没有足够的代表发表评论,我没有给你的答案,但我遇到了一些很好的多显示器阅读材料。
https://source.android.com/devices/tech/display/multi_display https://source.android.com/devices/tech/display/multi_display
This link here indicates that as of Android 10 (API 29) that users can move activities on a device that is running multiple displays.此处的此链接表明,从 Android 10 (API 29) 开始,用户可以在运行多个显示器的设备上移动活动。
https://developer.android.com/guide/topics/ui/foldables#multi-display https://developer.android.com/guide/topics/ui/foldables#multi-display
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.