Text Field Doesn't Display Text

Hi,

I’ve got a new Samsung Galaxy Mini, and it’s the first time I’ve put my app on an android.

I’ve got a text field which operates fine in that you can change the text.  The only problem is, you can’t actually see what the text is that’s in the text field.

It works fine on the emulator.

Any help is appreciated!

thanks

just to clarify, all i see is a blank text field.  It looks like there’s no text in it. 

Hi @editor,

Can you please post the code where you set up your text field?

Thanks,

Brent

        playerNameTextField = native.newTextField(150, 85, 120, 14)
        playerNameTextField.text = playerName
        playerNameTextField:addEventListener(“userInput”, changeNameListener)
 

thanks!

Hi @editor,

Can you please test the Corona sample project using text fields and see if the behavior (on the device) differs from your code? This is located in your local application directory:

CoronaSDK > SampleCode > Interface > NativeKeyboard

Best regards,

Brent

just to clarify, all i see is a blank text field.  It looks like there’s no text in it. 

Hi @editor,

Can you please post the code where you set up your text field?

Thanks,

Brent

        playerNameTextField = native.newTextField(150, 85, 120, 14)
        playerNameTextField.text = playerName
        playerNameTextField:addEventListener(“userInput”, changeNameListener)
 

thanks!

Thanks for your help Brent.  I needed to play around with the font size and the height of the textfield to get it working.

Maybe it would be better if the defaults worked out of the box?

regards

Hi @editor,

Can you please test the Corona sample project using text fields and see if the behavior (on the device) differs from your code? This is located in your local application directory:

CoronaSDK > SampleCode > Interface > NativeKeyboard

Best regards,

Brent

Thanks for your help Brent.  I needed to play around with the font size and the height of the textfield to get it working.

Maybe it would be better if the defaults worked out of the box?

regards