//***Application created using Mobile RAD IDE Copyright 2012 Usmar A Padow
usmpadow@gmail.com
function CreateWindow() {
win = Ti.UI.createWindow({
backgroundColor:'white'
});
if (Ti.UI.Android){
win.windowSoftInputMode = Ti.UI.Android.SOFT_INPUT_ADJUST_PAN;
}
}
CreateWindow();
var ViewMain = Ti.UI.createView({contentHeight: 'auto', layout: 'vertical'});
win.add(ViewMain);
win.open();
var text1 = Ti.UI.createTextField({//left:0,top:0,
hintText: 'text1',width: 'auto', height: 'auto'});
ViewMain.add(text1);
var label1 = Ti.UI.createLabel({//left:0,top:0,
text:'label1', color:'black', width: 'auto', height: 'auto'});
ViewMain.add(label1);
var button1 = Titanium.UI.createButton({//left:0,top:0,
height:'auto',width:'auto',title:'button1'})
button1.addEventListener('click', function(e) {
//Add code to handle event here
alert('button button1 was pressed');
label1.text = text1.value;
});
ViewMain.add(button1);
Oh my! I had no idea xD I was expecting... Bad lol