I'm trying to make (for learning purposes) my own implementation of a simple AdapterView
. Now I have a question: How to add a headerView
in my custom adapterView
like addHeaderView
in listView
?
I have realized the waterfall part by using adapterView
, but the header I have has special demands: it can slide horizontally and the whole view as below can slide up and down. I never wrote waterfall as below, but write single lines in listView
, I can use addHeaderview
method to add a viewpager in listView
to meet the demands, but I can't understand how to do it in adapterView
.
Because I'm a freshman, I can't upload pictures, but you can look at pinterest. I just want to replace the header part aboved waterfall part with a viewpager.