gpt4 book ai didi

android - View.onConfigurationChanged 何时被调用?

转载 作者:行者123 更新时间:2023-12-02 10:30:33 38 4
gpt4 key购买 nike

什么时候View.onConfigurationChanged接到电话吗?如果 Activity 可以调用它吗?显示它没有注册任何 configChangesManifest

最佳答案

以下是针对您的问题的 Google 文档:

Called by the system when the device configuration changes while your activity is running. Note that this will only be called if you have selected configurations you would like to handle with the configChanges attribute in your manifest. If any configuration change occurs that is not selected to be reported by that attribute, then instead of reporting it the system will stop and restart the activity (to have it launched with the new configuration).

如您所见,它表示如果您在 list 中定义了“configChanges”,它就会运行。<强> Source

关于android - View.onConfigurationChanged 何时被调用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34636940/

38 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com