Implent Scroll view
Today I tried to make a start with Titanium, but I'm already stuck with a problem. How do I implent the Scroll View?
I watched tutorials like:
http://www.youtube.com/watch?v=TCd-cTEb51E&NR=1
They make a lot of sense, but I can't find anything how to implent the scroll view.
I want to make an app that is displayed in landscape modus [forced]. And has different Scroll View pages. Could somebody point me in a direction? Because I don't now what terms to use for a good search.
1 Answer
-
var win = Ti.UI.createWindow({
backgroundColor: 'white',
exitOnClose: true,
fullscreen: false,
title: 'ScrollView Demo'
});var scrollView = Ti.UI.createScrollView({
contentWidth: 'auto',
contentHeight: 'auto',
showVerticalScrollIndicator: true,
showHorizontalScrollIndicator: true,
height: '80%',
width: '80%'
});
var view = Ti.UI.createView({
backgroundColor:'#336699',
borderRadius: 10,
top: 10,
height: 2000,
width: 1000
});
scrollView.add(view);
win.add(scrollView);
win.open();