Wednesday 15 August 2012

javascript - Unicode Character 'BULLET' in Titanium App -



javascript - Unicode Character 'BULLET' in Titanium App -

i have problem bullet character in android app developed titanium.

i have part of code:

function getformattedpizza() { var text = win.crust + ' pizza with:\n'; if (win.toppings.length == 0) { text += '&bull; plain (cheese pizza)\n'; } else { (var = 0; < win.toppings.length; i++) { text += '&bull; ' + win.toppings[i] + '\n'; } } homecoming text; }

and in app see string &bull ; plain (cheese pizza), not unordered list.

in way can show dots list?

instead of &bull can utilize '\u2022'+'plain (cheese pizza)', \u2022 unicode bullet.

samlple code :

var lbl = ti.ui.createlabel({ text : '\u2022'+' hello' }); win.add(lbl);

for more unicodes can check link, or refer question.

hope help you. :)

javascript android unicode titanium titanium-mobile

No comments:

Post a Comment