Skip to content

Instantly share code, notes, and snippets.

@srahim
Created January 17, 2012 01:09
Show Gist options
  • Save srahim/1623949 to your computer and use it in GitHub Desktop.
Save srahim/1623949 to your computer and use it in GitHub Desktop.
app.js
var win = Titanium.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff',
});
var scrollView = Titanium.UI.createScrollView({
contentWidth:'auto',
contentHeight:'auto',
top:0,
showVerticalScrollIndicator:true,
showHorizontalScrollIndicator:true
});
scrollView.setContentOffset({x:3000,y:20},{animated:false});
var view = Ti.UI.createView({
backgroundColor:'#336699',
borderRadius:10,
width:3000,
height:700,
top:10
});
scrollView.add(view);
win.open();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment