屏幕闪烁时,横向方向失败

问题描述 投票:0回答:1

我有一个简单的应用程序,在纵向模式下打开时正常工作,但是,当它以编程方式将布局方向切换为横向时,会抛出大量的logcat错误,屏幕开始闪烁..我不知道发生了什么?

我的LogCat

08-29 18:35:05.596 17840-17840 / com.mediamaster.kidstube I / HwPointEventFilter:因为没有配置而不支持AFT 08-29 18:35:05.694 17840-17840 / com.mediamaster.kidstube W / WindowDecorActionBar:不应该进行转换或转换动画为null或正在运行或mContainer视图为null或mContainer视图尚未绘制到屏幕08-29 18:35:05.695 17840-17840 / com.mediamaster.kidstube W / CfgFilePolicy:找不到配置文件:/ themes / diff / icons CFG_DIRS长度:11 08-29 18:35:05.704 17840-17840 / com.mediamaster.kidstube I / HwPointEventFilter:因为没有配置而不支持AFT 08-29 18:35:05.817 17840-17840 / com.mediamaster.kidstube W / WindowDecorActionBar:不应该进行转换或转换动画为空或正在运行或mContainer视图为null或mContainer视图尚未绘制到屏幕08 -29 18:35:05.818 17840-17840 / com.mediamaster.kidstube W / CfgFilePolicy:找不到配置文件:/ themes / diff / icons CFG_DIRS长度:11 08-29 18:35:05.828 17840-17840 / com.mediamaster.kidstube I / HwPointEventFilter:因为没有配置而不支持AFT 08-29 18:35:05.930 17840-17840 / com.mediamaster.kidstube W / WindowDecorActionBar:不应该进行转换或转换anim为null或正在运行或mContainer视图为null或mContainer视图尚未绘制到屏幕08-29 18:35:05.931 17840-17840 / com.mediamaster.kidstube W / CfgFilePolicy:找不到配置文件: / themes / diff / icons CFG_DIRS长度:11 08-29 18:35:05.939 17840-17840 / com.mediamaster.kidstube I / HwPointEventFilter:因为没有配置而不支持AFT 08-29 18:35:06.053 17840-17840 /com.mediamaster.kidstube W / WindowDecorActionBar:不应该进行转换或转换动画为null或者它正在运行或mContainer视图为null或mContainer视图尚未绘制到屏幕08-29 18:35:06.053 17840 -17840 / com.mediamaster.kidstube W / CfgFilePolicy:找不到配置文件:/ themes / diff / icons CFG_DIRS长度:11 08-29 18:35:06.062 17840-17840 / com.m ediamaster.kidstube I / HwPointEventFilter:由于没有配置,不支持AFT

android screen-orientation landscape
1个回答
0
投票

解决方案是将以下内容添加到manifest.xml中的活动

机器人:configChanges = “方向|屏幕尺寸| keyboardHidden”

感谢你的帮助!

编辑:当我在清单中将活动方向设置为“横向”时,我仍然遇到问题,请帮助我!

© www.soinside.com 2019 - 2024. All rights reserved.