I am able to create apps with tabs, but when it comes to a simple one window app I am lost.
I created a very simple app that just creates a window with one label, but it gets stuck on the powered by screen and never loads.
If I add a tab group it loads fine.
I am hoping someone would be kind enough to post code for a simple app. Just a plain white window with one label.
Thank you!
1 Answer
Accepted Answer
Something like this in your app.js:
Titanium.UI.setBackgroundColor('#FFF'); var win1 = Titanium.UI.createWindow({ title:'My window', backgroundColor:'#fff' }); var label1 = Titanium.UI.createLabel({ text:'Just a label', font:{fontSize:20,fontFamily:'Helvetica Neue'}, textAlign:'center', width:'auto', }); win1.add(label1); win1.open({fullscreen: false});
Your Answer
Think you can help? Login to answer this question!