My Android AIR app shows white screen when TextInput loses focus

爱⌒轻易说出口 提交于 2019-12-11 13:46:42

问题


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.

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

Tested on HYUNDAI SmartPad H-SP701G, Android 4.0.4

UPD2:

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


回答1:


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

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



来源:https://stackoverflow.com/questions/15354929/my-android-air-app-shows-white-screen-when-textinput-loses-focus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!