Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. var win = Ti.UI.createWindow({
  2. backgroundColor: "#fff"
  3. });
  4.  
  5. var refreshControl = Ti.UI.createRefreshControl({
  6. tintColor: "red"
  7. });
  8.  
  9. var scroll = Ti.UI.createScrollView({
  10. backgroundColor: "yellow",
  11. refreshControl: refreshControl
  12. });
  13.  
  14. refreshControl.addEventListener("refreshstart", function() {
  15. setTimeout(function() {
  16. refreshControl.endRefreshing();
  17. },1000);
  18. })
  19.  
  20. scroll.add(Ti.UI.createLabel({
  21. text: "Scroll down!"
  22. }));
  23.  
  24. win.add(scroll);
  25. win.open();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement