在安卓设备中禁用多窗口支持

4

我试图在清单文件的应用程序标签内使用android:resizeableActivity="false"来禁用多窗口支持。但是它显示了以下警告:

Attribute resizeableActivity is only used in API level 24 and higher (current min is 15)

然后我使用了"suppress with tool:TargetApi Attribute",但是这给了我一个RuntimeException: Worker exited due to exception:

现在该怎么办呢?


看这个 https://dev59.com/KZvga4cB1Zd3GeqP7MlR#40168257 和这个 https://dev59.com/KZvga4cB1Zd3GeqP7MlR#40168257。 - Niharika
@Niharika,我已经检查了这两个问题,它们是不同的。 - Rathi J
1个回答

7
Attribute resizeableActivity is only used in API level 24 and higher (current min is 15)

你可以安全地忽略那个警告,因为多窗口支持仅适用于Android 7.0(API等级24)及以上版本。在较低版本中,这一行android:resizeableActivity="false"将被忽略。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接