What’s the issue?
UITextField displays black boxes instead of the text when used in portrait mode.
What’s the engine version?
Cocos2d-x 3.0 beta 1
How to reproduce it?
- Create an Android Project.
- Set
screenOrientation
to portrait
.
- Add a
UITextField
on a scene.
- Test on an Android device.
OR
- Build, Compile, and Run TestCPP on Portrait mode.
- Go to
ExtensionsTest
> CocosStudioGUITest
> gui TextField Test
.
Wuhao
#2
Please use EditBox, textfield is very old
I’m talking about cocos2d::gui::UITextField, the one used with CocoStudio.
I used this file as base: https://github.com/cocos2d/cocos2d-x/blob/master/samples/Cpp/TestCpp/Classes/ExtensionsTest/CocoStudioGUITest/UITextFieldTest/UITextFieldTest.cpp
Also, I don’t like using EditBox as it creates another activity on top of the game.
Note that this issue doesn’t happen when used in Landscape, only in portrait.
Wuhao
#5
ok, point taken, i’ll forward this to studio UI team
walzer
#6
@lance_gray, which version of Android, and which brand / model of device are you using?
Samsung Galaxy S4, KitKat update. Will try on ICS.