This question already has an answer here:
- Android ListView disable clicks and context menu on header view? 2 answers
I'm using isEnabled in my BaseAdapter of ListView and controlling which rows can be clickable. However, I want to disable click event for my header and isEnabled does not work. Position 0 points the first row, therefore I can not control header click.
On the other hand, when I add header using addHeaderView giving arguments (header, null, false) , it works but dividers are missing in that way. How can I manage this?
Is there anyone who knows this problem?