I set a header view using getListView().addHeaderView(view);
and it currently gets treated in the same way as all of the other list rows with regards to clicks and context menus. How can I make the header view act like more of a header? Alternatively, how can I just add some content above the ListView
that is not part of the ListView
itself?
Look at the second and third parameter of the addHeaderView method. You can simply disable interaction with
getListView().addHeaderView(view, null, false);
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