Skip to content

Instantly share code, notes, and snippets.

@euforic
Created October 22, 2012 10:39
Show Gist options
  • Save euforic/3930843 to your computer and use it in GitHub Desktop.
Save euforic/3930843 to your computer and use it in GitHub Desktop.
/File generated Using psd2ti
var self = Ti.UI.createWindow();
self.open();
var bg = Ti.UI.createImageView({
top: 0, left: 0,
height: 480, width:320,
backgroundImage: 'images/bg.png'
});
self.add(bg);
var btn6 = Ti.UI.createImageView({
top: 7, left: 7,
height: 174, width:304,
backgroundImage: 'images/btn6.png'
});
self.add(btn6);
var btn5 = Ti.UI.createImageView({
top: 402, left: 22,
height: 45, width:275,
backgroundImage: 'images/btn5.png'
});
self.add(btn5);
var btn4 = Ti.UI.createImageView({
top: 325, left: 41,
height: 46, width:279,
backgroundImage: 'images/btn4.png'
});
self.add(btn4);
var btn3 = Ti.UI.createImageView({
top: 275, left: 41,
height: 46, width:279,
backgroundImage: 'images/btn3.png'
});
self.add(btn3);
var btn2 = Ti.UI.createImageView({
top: 225, left: 41,
height: 46, width:279,
backgroundImage: 'images/btn2.png'
});
self.add(btn2);
var btn1 = Ti.UI.createImageView({
top: 175, left: 41,
height: 46, width:279,
backgroundImage: 'images/btn1.png'
});
self.add(btn1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment