How to overcome Native Text Field Issue...Please help me...

Hi all,

 

I faced a Native Text Field issue on Android Devices.When I tested native text field on iOS Devices,native text field seem Ok.but when I tested on Android Devices,native text fields are not able to show the text properly(can input the text but not able to see the text that I key in inside the text box).I would like to know how to overcome it.Thanks.

 

Best Regards,

John

Hi John,

Can you please show me some code of how you’re implementing the text input field and the function listener for it?

Thanks,

Brent

Hi Brent,

The following are some portion of the code.Please check.Thanks you so much…

regNewUIDpwdField = native.newTextField( regNewUIDpwdFieldX, regNewUIDpwdFieldY, 400, 30 ) regNewUIDpwdField.xScale = Xa regNewUIDpwdField.yScale = Ya regNewUIDpwdField.isSecure = true

P.S: I don’t use function listener in my code.Is it I need to use it?

Warm Wishes,

John

Hi John,

I think the issue is that you’re trying to scale the text field (xScale and yScale). I don’t believe that this is allowed (or it might mess up the interaction or display of it). You can, however, set the width and height of the field, which is the proper method.

Did you follow through the usage examples for this API?

http://docs.coronalabs.com/api/library/native/newTextField.html

http://docs.coronalabs.com/guide/system/nativeUI/index.html

Best regards,

Brent

Hi John,

Can you please show me some code of how you’re implementing the text input field and the function listener for it?

Thanks,

Brent

Hi Brent,

The following are some portion of the code.Please check.Thanks you so much…

regNewUIDpwdField = native.newTextField( regNewUIDpwdFieldX, regNewUIDpwdFieldY, 400, 30 ) regNewUIDpwdField.xScale = Xa regNewUIDpwdField.yScale = Ya regNewUIDpwdField.isSecure = true

P.S: I don’t use function listener in my code.Is it I need to use it?

Warm Wishes,

John

Hi John,

I think the issue is that you’re trying to scale the text field (xScale and yScale). I don’t believe that this is allowed (or it might mess up the interaction or display of it). You can, however, set the width and height of the field, which is the proper method.

Did you follow through the usage examples for this API?

http://docs.coronalabs.com/api/library/native/newTextField.html

http://docs.coronalabs.com/guide/system/nativeUI/index.html

Best regards,

Brent