我的Andr​​oid AIR应用程序显示白色画面时的TextInput失去焦点 [英] My Android AIR app shows white screen when TextInput loses focus

查看:148
本文介绍了我的Andr​​oid AIR应用程序显示白色画面时的TextInput失去焦点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是pretty的多总结了这个问题。我有一个的FlashDevelop AIR移动Flex应用程序项目,该项目是利用视图来显示内容。一切工作正常,我可以添加一个TextInput或文本域的阶段,选择它(软键盘显示出来的话),键入一些文字。但是,当我preSS输入或更改焦点转移到其他元素隐藏键盘,屏幕将自动除已在字段中输入的文字完全变白。

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. Everything works fine, I can add a TextInput or TextArea to the stage, select it (Soft Keyboard shows up then), type some text. 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.

现在它变得有趣。如果我转动我的平板电脑,迫使屏幕进行调整,内容再次成为可见。有时,它甚至不显示一个白色的屏幕,而是一个漆黑一个显示空白preVIEW当看到正在运行的应用程序列表。

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:

AIR verison:3.1

AIR verison: 3.1

在测试的SmartPad现代H-SP701G,安卓4.0.4

Tested on HYUNDAI SmartPad H-SP701G, Android 4.0.4

UPD2:

在测试了SANSUI ETAB 801VP,仍然得到同样的效果。

Tested on SANSUI ETAB 801VP, still getting the same effect.

推荐答案

现在的问题是在你的应用程序配置XML。 检查你的标记。 进入自动或CPU的值应该解决这个问题。

The problem is in your application configuration XML. Check your tag. Entering value of "auto" or "cpu" should fix the problem.

<renderMode>auto</renderMode>

在我的情况下,我直接设置,这是问题的原因。使用直接渲染模式造成的应用程序在HTC EVO 3D和三星Galaxy S3无法正常工作。它虽然做了HTC Desire的工作。

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. It did work on HTC Desire though.

这篇关于我的Andr​​oid AIR应用程序显示白色画面时的TextInput失去焦点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆