Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Can't see typed text and hint text on textField on Android

$
0
0

This is the textField code :

$.loginscreen.accPromptView.emailtextf = Ti.UI.createTextField({
                    paddingLeft:'4%', // 10 de 250
                    borderStyle : "INPUT_BORDERSTYLE_NONE",
                    keyboardType : "Ti.UI.KEYBOARD_EMAIL",
                    returnKeyType :"Titanium.UI.RETURNKEY_DONE",
                    autocorrect : "false", 
                    keyboardToolbarColor : "#999",
                    keyboardToolbarHeight : "40",
                    height : "9.3%", // 25 de 270
                    width : "80%", // 80% de 250 càd 200dp 
                    hintText : "   Email",
                    top : '33.7%',//91 de 270
                    font : {
                        fontSize : 7,
                    },
                    color : "red",
                    backgroundColor : "green",
                    //borderRadius : 6
                });
i changed its backgroundColor to green to make sure it's not hidden by any other component and when it's focused the soft keyboard is shown but neither hint text nor typed text are displayed on it.

I had also a weird reaction with some views and textFields when borderRadius is set (whole components and text they wrap become fuzzy and this happens only on components added with javascript not those from Alloy xml layouts)


Viewing all articles
Browse latest Browse all 7655

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>