I have a listview with rows as big as the device screen and I want to show row per row while sliding, I don't want to show parts of rows when doing so, is there any way of doing it.
Asked
Active
Viewed 107 times
1 Answers
2
ListViews are not made for this kind of use case. ViewPagers are, but they scroll horizontally. It's possible to make it scroll vertically (see Android: Vertical ViewPager), which should be what you're looking for.
The problem with adjusting the size of each ListView item to fill the screen is that match_parent simply doesn't work. You would need to calculate the exact size you need (screen height minus action bar and other views that are not part of the ListView). It's probably possible, but not worth the trouble.

Community
- 1
- 1

0101100101
- 5,786
- 6
- 31
- 55
-
.. I see, Thank you @Vlad, i shall look into that. – Zouhair Elamrani Abou Elassad Aug 18 '14 at 12:31
-
.. Can i use a row layout for The View Pager same as ListView ? – Zouhair Elamrani Abou Elassad Aug 27 '14 at 23:24