Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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.

— asked April 19th 2010 by Paul Straetmans
  • scrollview
0 Comments

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();

    — answered March 12th 2014 by Mahmudul Hasan Emon
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.