Titanium Community Questions & Answer Archive

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

Items not appearing in scrollView?

I have run into this really strange issue. When I have the following everything displays properly:

app.add(scrollView);
scrollView.add(logo);
scrollView.add(item_left);
scrollView.add(item_right);
scrollView.add(tab1);
scrollView.add(tab2);
scrollView.add(tab3);
scrollView.add(view1);
scrollView.add(view2);
scrollView.add(view3);
scrollView.add(view4);
scrollView.add(view5);
scrollView.add(view6);

But I only want the view1-X inside the scrolling area. So I then switch to the following and adjust all the positioning (top for example)

app.add(logo);
app.add(item_left);
app.add(item_right);
app.add(tab1);
app.add(tab2);
app.add(tab3);
scrollView.add(view1);
scrollView.add(view2);
scrollView.add(view3);
scrollView.add(view4);
scrollView.add(view5);
scrollView.add(view6);
app.add(scrollView);

Now the scrollview is in the right area, but all the views inside aren't showing so the scrollView just looks empty. Is there something I am missing about when things should fire? Am I missing something else altogether??

Thanks in advance for any ideas.

— asked November 30th 2010 by Jeremy Krall
  • android
  • scrollview
2 Comments
  • Jeremy

    It's difficult to deduce the problem without the complete code. Would you post it please?

    — commented December 1st 2010 by Paul Dowsett
  • Agreed, I haven't a clue what's going on. Make your question simple, clear, and direct. Also, see the wiki for how to Participate in the Q&A, especially the Question Checklist.

    — commented April 5th 2011 by Joe iEntry

0 Answers

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.