Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Text and HintText on TextField Disappeared on Android 4.4.2

$
0
0

Dear All,

I'm facing the weird problem while using Titanium Alloy Application. The text and hintText at textField disappeared when I deploy the APK on LG G2, Samsung Galaxy S4 and Samsung Galaxy Note 3. All of them running Android 4.4.2. But when I deploy the APK to Android device except 4.4.2, the textfield was fine. (See pictures)

Here is my code (view and style). After installing apk to several device, some of the result isn't as I expected.

Is there something wrong with Android 4.4.2 when render the TextField? Anyone facing this problem too?

Thanks in advance.

weird textfield on LG G2, Samsung Galaxy S4 and Samsung Galaxy Note 3 Running Android 4.4.2 weird textfield

other device other device

<Label class="label-field">Email</Label>
<View id="viewEmail" borderWidth="0" borderColor="#ff262879" borderRadius="4" top="6dp" left="15dp" right="15dp" height="45">
    <ImageView left="0" image="/images/icon/email.png" height="45" width="45" />
    <TextField id="txfEmail" hintText="mobile@fifgroup.co.id"  />
</View>
 
 
<Label class="label-field">Kata Sandi</Label>
<View id="viewPassword" borderWidth="0" borderColor="#ff262879" borderRadius="4" top="6dp" bottom="20dp" left="15dp" right="15dp" height="45">
    <ImageView left="0" image="/images/icon/password.png" height="45" width="45" />
    <TextField id="txfPassword" hintText="kata sandi" passwordMask="true" />
</View>
 
"#txfEmail":{
    top: 0,
    bottom: 0,
    height: 45,
    left: 45,
    right: 0,
    backgroundColor: '#f0f0f0',
    font:{
        fontFamily: Alloy.CFG.boldFont,
        fontSize: '16dp'
    },
    borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
    returnKeyType : Titanium.UI.RETURNKEY_DONE,
    keyboardType : Ti.UI.KEYBOARD_EMAIL,
    color: 'black',
    borderWidth : 0,
    textAlign: 'left'
}
 
"#txfPassword":{
    top: 0,
    bottom: 0,
    height: 45,
    left: 45,
    right: 0,
    backgroundColor: '#f0f0f0',
    borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED,
    returnKeyType : Titanium.UI.RETURNKEY_DONE,
    color: 'black',
    borderWidth : 0,
    textAlign: 'left',
    font:{
        fontFamily: Alloy.CFG.boldFont,
        fontSize: '16dp'
    },
}

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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