First view wont load with dynamic scrollable views

You must Login before you can answer or comment on any questions.

When my application loads the first view is blank, I can scroll to the second view and everything starts working. I have tried a couple things but cannot get this working.

var scrollableView = Ti.UI.createScrollableView({
    views:[]
});
 
 
(Loop that pulls data off XML doc and repeats till each data set is a view
 
...
 
var newView = Ti.UI.createView({
 
 
});
 
scrollableView.addView(newView);
 
)

1 Answer

Hi

Its not compulsory to pass the views while you creating the scrollView. So first of all try removing that it will not cause any error and check whether it works or not. Also provide the height and width to AUTO.

Regards

Nikunj

Your Answer

Think you can help? Login to answer this question!