-
Notifications
You must be signed in to change notification settings - Fork 3
/
app.js
34 lines (27 loc) · 757 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var self = Ti.UI.createWindow();
var allViews = [];
for (var i = 0; i < 10; i++) {
var container = Ti.UI.createView({
backgroundImage: '/images/' + i + '.jpg', //This is IMPORTANT
width: Ti.UI.FILL,
height: Ti.UI.FILL
});
var messageLabel = Ti.UI.createLabel({
color: '#000',
font: {
fontSize: 30
},
width: Ti.UI.SIZE,
height: Ti.UI.SIZE,
text: 'Message View ' + i
});
container.add(messageLabel);
allViews.push(container);
}
var TiFadingScrollableView = require('/lib/TiFadingScrollableView');
var scrollableView = TiFadingScrollableView.createScrollableView({
parent: self,
views: allViews
});
self.add(scrollableView);
self.open();