Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var win = Ti.UI.createWindow({
- backgroundColor: "#fff"
- });
- var refreshControl = Ti.UI.createRefreshControl({
- tintColor: "red"
- });
- var scroll = Ti.UI.createScrollView({
- backgroundColor: "yellow",
- refreshControl: refreshControl
- });
- refreshControl.addEventListener("refreshstart", function() {
- setTimeout(function() {
- refreshControl.endRefreshing();
- },1000);
- })
- scroll.add(Ti.UI.createLabel({
- text: "Scroll down!"
- }));
- win.add(scroll);
- win.open();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement