简体   繁体   English

当TextInput失去焦点时,我的Android AIR应用程序显示白屏

[英]My Android AIR app shows white screen when TextInput loses focus

That's pretty much sums up the question. 这几乎可以概括这个问题。 I have an AIR Mobile Flex App project in FlashDevelop that is using views to show content. 我在FlashDevelop中有一个AIR Mobile Flex App项目,该项目正在使用视图显示内容。 Everything works fine, I can add a TextInput or TextArea to the stage, select it (Soft Keyboard shows up then), type some text. 一切正常,我可以在舞台上添加一个TextInput或TextArea,选择它(然后显示软键盘),输入一些文本。 But when I press enter or change focus to the other element to hide the keyboard, the screen turns completely white except for the text that has been entered in the field. 但是,当我按Enter键或将焦点更改为其他元素以隐藏键盘时,除了已在该字段中输入的文本之外,屏幕都变成了白色。

Now it becomes interesting. 现在变得有趣了。 If I rotate my tablet to force the screen to adjust, the content becomes again visible. 如果旋转平板电脑以迫使屏幕进行调整,则内容将再次可见。 Sometimes it doesn't even show a white screen, but rather a pitch black one that shows a blank preview when looking at the list of the running apps. 有时,它甚至不显示白屏,而是黑色的,在查看正在运行的应用程序列表时显示空白的预览。

I cannot grasp the logic besides this behavior. 除了这种行为,我无法理解逻辑。 It seems that somehow screen just doesn't want to redraw. 似乎屏幕以某种方式不想重绘。

UPD: UPD:

AIR verison: 3.1 AIR版本:3.1

Tested on HYUNDAI SmartPad H-SP701G, Android 4.0.4 在HYUNDAI SmartPad H-SP701G,Android 4.0.4上测试

UPD2: UPD2:

Tested on SANSUI ETAB 801VP, still getting the same effect. 在SANSUI ETAB 801VP上测试,仍然获得相同的效果。

The problem is in your application configuration XML. 问题出在您的应用程序配置XML中。 Check your tag. 检查您的标签。 Entering value of "auto" or "cpu" should fix the problem. 输入“ auto”或“ cpu”的值应该可以解决该问题。

<renderMode>auto</renderMode>

In my case I set direct and this was the cause of the issue. 以我为例,我设置了直接权限,这就是问题的原因。 Using direct render mode caused the application to not work on HTC Evo 3D and Samsung galaxy s3. 使用直接渲染模式导致该应用程序无法在HTC Evo 3D和Samsung galaxy s3上运行。 It did work on HTC Desire though. 它确实在HTC Desire上工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM