Try the following:
var button = Titanium.UI.createButton({
title: 'Some Title',
top:175,
left:5,
width: 190,
height: 35,
font:{fontSize:14},
image: 'img/some_img.png'
});
then: Titanium.UI.currentWindow.add(button);
Hope this helps! Greetings
source
share