Anybody knows how to disable the header view in list view?
I need to add a header into a list view and make it not clickable.
For adapter it's pretty simple: return false in isEnabled(int position)
method but I didn't find an appropriate function for list headers/footers. Setting enabled flag for header view didn't help, nor did specifying "android:descendantFocusability="blocksDescendants"" in header's xml
use these methods to add header and footer in list:
list.addFooterView(v);
list.addHeaderView(v, data, isSelectable);
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