i am trying to make a text with underline, but i am receiving this warning.
Screenshot here !
The code is:
var texto= L("txt_olvide_password");
var attr = Titanium.UI.createAttributedString({
text: texto,
attributes: [ { type: Titanium.UI.ATTRIBUTE_UNDERLINES_STYLE, range: [0,texto.length] }, ]
});
var lblOlvidePassword = Titanium.UI.createLabel({
top: '58%',
color: clr_aux1,
font: { fontFamily: font_primaria, fontSize: 16 },
attributedString: attr
});
vistaLogin.add(lblOlvidePassword)
What am i doing wrong ? thanks in advance.
Titanium Appcelerador 4.5.0 SDK: 5.2.0 iOS / Android
With underline you should also use
value
like
var attr = Titanium.UI.createAttributedString({
text : texto,
attributes : [{
type : Titanium.UI.ATTRIBUTE_UNDERLINES_STYLE,
range : [0,texto.length],
value : Titanium.UI.ATTRIBUTE_UNDERLINE_STYLE_SINGLE
}]
});
and now its working.