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);
2 Answers
-
Accepted Answer
Peter, you have to copy the zip content ( the folder 1.4.1 ) to
/Library/Application Support/Titanium/mobilesdk/osxand restart Titanium.
-
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_buildsAndrea