更改屏幕方向后视图不处理单击事件
我有一个奇怪的问题。我开发了应用程序(Android 1.5),它不会在更改屏幕方向(android:configChanges="orientation|keyboardHidden")时重新创建自身,并且对 configChange 方法不执行任何操作(只是为了禁止重新创建活动),但我的一些特殊视图失去了可能性处理 onClick 事件,此外,它们仍然可用于焦点并通过按 Enter 键激活它们,但不能用于单击。另外,当我改变方向时,onclick 功能将被恢复。您可以在 Quattro 横幅 (http://www.quattrowireless.com /about_quattro/press_releases_detail/quattro_launches_new_android_ad_kit/%20)。
I have one weird issue. I have developed application (Android 1.5) which does not recreates itself on changing screen orientation (android:configChanges="orientation|keyboardHidden") and do nothing on configChange method (just to forbid recreating activity), but some of my special views lost possibility to handle onClick events, futhermore they are still available for focus and for activating them via Enter key pressing, but not for clicks. And one more, onclick functionality is being restored when I change orientation back. You can easyly reproduce this issue on Quattro banner (http://www.quattrowireless.com/about_quattro/press_releases_detail/quattro_launches_new_android_ad_kit/%20).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论