-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from pec1985/timob-14129-3_1_X
Backport to 3.1.x [TIMOB-14129]
- Loading branch information
Showing
8 changed files
with
172 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,53 @@ | ||
var win = Ti.UI.createWindow({layout:'vertical'}); | ||
|
||
var label = Ti.UI.createLabel({ | ||
text: 'Type some stuff...', | ||
width: '75%', height: 50 | ||
}); | ||
win.add(label); | ||
|
||
var textField = Ti.UI.createTextField({ | ||
width: '75%', height: 75 | ||
}); | ||
win.add(textField); | ||
|
||
var button = Ti.UI.createButton({ | ||
title: 'Click, me!', | ||
width: '75%', height: 100 | ||
}); | ||
win.add(button); | ||
|
||
button.addEventListener('click',function(e){ | ||
Ti.API.info('Sending feature event'); | ||
Titanium.Analytics.featureEvent('my.feature.blah'); | ||
}); | ||
|
||
var view = Ti.UI.createView({ | ||
backgroundColor: 'red' | ||
}); | ||
win.add(view); | ||
|
||
/* | ||
var win = Ti.UI.createWindow({}); | ||
//Horizontal Layout behavior. Green child centered vertically (No positioning pins) | ||
var parent = Ti.UI.createView({backgroundColor:'red',layout:'horizontal',width:100, height:100}); | ||
var child1 =Ti.UI.createView({backgroundColor:'green',height:20,width:50}); | ||
var child2 =Ti.UI.createView({backgroundColor:'blue',height:40,width:50}); | ||
parent.add(child1); | ||
parent.add(child2); | ||
win.add(parent); | ||
win.open(); | ||
*/ | ||
|
||
|
||
var win = Ti.UI.createWindow({}); | ||
|
||
var view = Ti.UI.createView({ | ||
height:300, | ||
width:320, | ||
layout:'horizontal' | ||
|
||
}); | ||
win.add(view); | ||
|
||
var l1 = Ti.UI.createLabel({ | ||
text:'I am the first label', | ||
left:5, | ||
width:'auto', | ||
height:20 | ||
}); | ||
|
||
view.add(l1); | ||
|
||
var l2 = Ti.UI.createLabel({ | ||
text:'I am the second label', | ||
left:2, | ||
width:'auto', | ||
height:20 | ||
}); | ||
|
||
view.add(l2); | ||
|
||
var l3 = Ti.UI.createLabel({ | ||
text:'I am the third label', | ||
left:2, | ||
width:'auto', | ||
height:20 | ||
}); | ||
|
||
view.add(l3); | ||
|
||
win.open(); | ||
win.open(); |
Binary file not shown.