android - Horizontal Scroll View (4 listview) -


in linear layout have 2 listview's vertically oriented. want add "second slide" 2 more listview's simmilar before. when open app, first 2 listview vertically oriented shown, , when scroll right 2 listview shown.

and tried horizontal scroll, had 2 linear layout in horizontal scroll view brackets. in first linear layout first 2 listview's , in second linear layout 2 ...

and got in console: horizontalscrollview can host 1 direct child...

so, if i'm right, can't have 2 linear layouts in horizontalscrollview. have idea how it? i'm new in android, don't have idea how it...

thank you, matija :)

so, if i'm right, can't have 2 linear layouts in horizontalscrollview

that's correct, @ least not 2 direct children of scrollview error message tells you.

you could, however, wrap 2 linearlayouts in linearlayout (sounds horizontal orientation though i'm having trouble picturing doing).

if explain little better trying accomplish (maybe image) may able give better suggestion. sounds fragments and/or viewpager might work better you. either way, should solve problem.

pictorially:

you can't have this

          scrollview          /          \ linearlayout      linearlayout 

you can have this

          scrollview               |             linearlayout                 / \  linearlayout   linearlayout 

Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -