Is there a way to add a viewpager as a listview item?
I want to add it as a "header" on top of my listview before all real list items follow. I tried using addHeaderView() or declaring multiple view types in my list adapter, however, the viewpager never shows up whatever way I try.
Has anyone done something similar? Help!
Do not use wrap_content
, try to calculate and set ViewPager size programmatically and then add ViewPager as a header of ListView.
Quoting Dianne Hackborn, ViewPager
is "just not intended to be used as an item in a list"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With