Below is my code for it. It works great for iPhone, but the images are stretched for Android, so it does not show a shortcut.
var friendsButton = Titanium.UI.createButton({ top : 0, left : 91, width : 90, height : 101, style : 0, backgroundImage : '/img/buttonMiddle.png', image : '/img/friendcopy.png' }); var friendLabel = Titanium.UI.createLabel({ top : 35, left : 25, width : 100, height : 100, text : 'Friend', color : 'white', font : {fontSize:12} }); friendsButton.add(friendLabel);
Please help me with this. I'm new to Titanium
source share