I'm currently working on a project that requires a horizontal scrollView to take a negative values and be able to scroll to the left. Is this possible? Here's my code right now:
var gameView = Titanium.UI.createScrollView({
scrollType:'horizontal',
horizontalWrap:false,
height:'25%',
top:'0%',
width:'100%',
contentWidth: 'auto',
contentHeight: '25%',
showHorizontalScrollIndicator: true,
});
//Unrelated code here
houseArray[numHouses] = Titanium.UI.createImageView({
image:'/gameUI/gameWindow/house.png',
bottom:'0%',
right: farLeft + (width*.02), //2%
height:'auto',
width:'10%'
});
gameView.add(houseArray[numHouses]);
gameView.setContentWidth('auto');
Let me know if more code is needed (The increment system for the random locations of the images, the tracking of the far left and far right, etc).
As of right now, the houses are created, but once the houses go too far to the left (or the right, actually), the scrollView doesn't scroll. Well, it doesn't scroll before that either, but I don't need it to.
All help appreciated!