Should I use multiple ListViews?
Posted
by janfsd
on Stack Overflow
See other posts from Stack Overflow
or by janfsd
Published on 2010-04-04T19:54:48Z
Indexed on
2010/04/04
20:03 UTC
Read the original article
Hit count: 338
Hi to everybody! I have a RelativeLayout with different elements. I was planning to have two ListViews on it, but I have noticed there are some problems with scrolling. Since each ListView only shows a maximum of 5 rows should I try to make some kind of custom adapter to merge those ListViews? Or is it better to replace the ListView with a LinearLayout/RelativeLayout and add the rows as I get them manually? (like the first answer in here: http://stackoverflow.com/questions/1778485/android-listview-display-all-available-items-without-scroll-with-static-header ).
Which should be the proper way on doing this? or is there another way? Also, each row will have an OnClickListener.
© Stack Overflow or respective owner