Titanium Community Questions & Answer Archive

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

scrollableView is buggy with images. brutal.

Anyone have any success in scrolling through images with scrollableView? Image don't scroll smoothly because they start blank and then just "pop" into place on scroll. Hardly a scrollableView. Here is some code:

w = Titanium.UI.currentWindow;

var view0 = Titanium.UI.createImageView({
     backgroundImage:'images/tile0.png',
     height:71,
     width:71,
     top:280,
     left:125
});

var view1 = Titanium.UI.createImageView({
     backgroundImage:'images/tile1.png',
     height:71,
     width:71,
     top:280,
     left:125
});

var view2 = Titanium.UI.createImageView({
     backgroundImage:'images/tile2.png',
     height:71,
     width:71,
     top:280,
     left:125
});

var view3 = Titanium.UI.createImageView({
     backgroundImage:'images/tile3.png',
     height:71,
     width:71,
     top:280,
     left:125
});

var view4 = Titanium.UI.createImageView({
     backgroundImage:'images/tile4.png',
     height:71,
     width:71,
     top:280,
     left:125
});

var view5 = Titanium.UI.createImageView({
     backgroundImage:'images/tile5.png',
     height:71,
     width:71,
     top:280,
     left:125
});


var scrollView = Titanium.UI.createScrollableView({
    views:[view0,view1,view2,view3,view4,view5],
    backgroundColor:'#000000',
    width:320,
    height:480,
    showPagingControl:false
});

w.add(scrollView);
— asked September 11th 2010 by Peter Levin
0 Comments

2 Answers

  • Accepted Answer

    Peter, you have to copy the zip content ( the folder 1.4.1 ) to
    /Library/Application Support/Titanium/mobilesdk/osx

    and restart Titanium.

    — answered September 11th 2010 by Dan Tamas
    permalink
    0 Comments
  • I hade the same problem too.
    Are you using sdk 1.4.0 ?
    in this case update with 1.4.1 , this will fix the bad apparence.
    http://builds.appcelerator.com.s3.amazonaws.com/index.html
    instruction here:
    http://developer.appcelerator.com/doc/mobile/get_continuous_builds

    Andrea

    — answered September 11th 2010 by Andrea S
    permalink
    3 Comments
    • Andrea - Thanks! How do i update these builds in Titanium?

      — commented September 11th 2010 by Peter Levin
    • ahh! got it, disregard last comment. Thank you.

      — commented September 11th 2010 by Peter Levin
    • i take that backed. following instructions but new build is not showing up. I extracted to /Library/Application Support/Titanium and get nothing.

      — commented September 11th 2010 by Peter Levin
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.