android:launchMode和android:documentLaunchMode属性之间有什么区别?

pul*_*ion 5 android android-activity android-task

因此,我一直在阅读“ 任务”,“后退堆栈”和“概述屏幕”上的文档,有一件事使我感到困惑。在launchMode这里阅读之后documentLaunchModehttp : //developer.android.com/guide/components/tasks-and-back-stack.html然后在这里阅读:http : //developer.android.com/guide/components/recents.html我无法分辨它们之间的差异!

两者都被描述为提供控制相对于当前任务(启动活动的任务)的任务中新活动的启动的方法。那么这两种模式有何不同?-document的附加意味着什么?

以下是直接在清单文件中使用它们的文档:
LaunchMode: http : //developer.android.com/guide/topics/manifest/activity-element.html#lmode
DocumentLaunchMode: http : //developer.android。 com / guide / topics / manifest / activity-element.html#dlmode

小智 0

DocumentLaunchMode 控制应用程序任务在最近任务列表中的显示(引导栏中的第三个按钮)。就像您在 Chrome 中打开一个网站一样,您可以打开有关该网站的许多选项卡。