android– 以编程方式禁用多窗口功能

android– 以编程方式禁用多窗口功能,第1张

概述我正在尝试禁用android的多窗口功能.我已经阅读了android文档并知道resizeableActivity只适用于androidN(API级别24),但我想在较低级别的androidAPI上禁用它.由于三星设备的所有设备都具有多窗口功能(约).所以我必须禁用它.解决方法:你不能在运行时这样做.您的应用程序要么支持多

我正在尝试禁用android的多窗口功能.我已经阅读了androID文档并知道resizeableActivity只适用于androID N(API级别24),但我想在较低级别的androID API上禁用它.由于三星设备的所有设备都具有多窗口功能(约).所以我必须禁用它.@H_404_1@

解决方法:@H_404_1@

你不能在运行时这样做.您的应用程序要么支持多窗口模式,要么不支持.在运行时期间无法更改AndroidManifest.xml中给出的参数.@H_404_1@

从documentation的androID:resizeableActivity:@H_404_1@

@H_404_1@

If this attribute is set to true, the activity can be launched in split-screen and freeform modes. If the attribute is set to false, the activity does not support multi-window mode. If this value is false, and the user attempts to launch the activity in multi-window mode, the activity takes over the full screen.@H_404_1@

对于特定的三星设备,您可以尝试将其放入清单文件中:@H_404_1@

@H_404_1@

<Meta-data androID:name="com.sec.androID.support.multiwindow" androID:value="false" /><Meta-data androID:name="com.samsung.androID.sdk.multiwindow.multiinstance.enable"            androID:value="false" /><Meta-data androID:name="com.samsung.androID.sdk.multiwindow.penwindow.enable"             androID:value="false" />
总结

以上是内存溢出为你收集整理的android – 以编程方式禁用多窗口功能全部内容,希望文章能够帮你解决android – 以编程方式禁用多窗口功能所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1108591.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-29
下一篇 2022-05-29

发表评论

登录后才能评论

评论列表(0条)

保存