Project: titanium
Issue TIMOB-23140: Android: Add lineSpacing property to Label
Add {noformat} lineSpacing: {add: float, multiply: float} {noformat} to Label !http://migaweb.de/linespacing.png! Android doc: http://developer.android.com/reference/android/widget/TextView.html#setLineSpacing%28float,%20float%29 *Example:* {code:javascript} var win = $.UI.create("Window", { layout: "vertical", backgroundColor: "#fff" }); var l = $.UI.create("Label", { lineSpacing: { add: 20, multiply: 1 }, text: "asdfasdfasdf\nasfasfasfasfafsd\nasfasfasdfasdf\nadsfasdfasdf", height: Ti.UI.SIZE, width: Ti.UI.SIZE, backgroundColor:"red" }); var l2 = $.UI.create("Label", { lineSpacing: { add: 0, multiply: 1 }, text: "qwerqwerqwer\nqwerqwer\nqwerqwerqwe\nqwerqwerqwre", height: Ti.UI.SIZE, width: Ti.UI.SIZE, backgroundColor:"green" }); var l3 = $.UI.create("Label", { lineSpacing: { add: 10, multiply: 0 }, text: "yxcvyxcyvx\nycxvyxcvyxc\nyxvcyxcvyxcv\nyxcvyxvyxc\nyxcvyxcvyx", height: Ti.UI.SIZE, width: Ti.UI.SIZE, backgroundColor:"yellow" }); win.add(l); win.add(l2); win.add(l3); win.open(); {code}
Story points: 1