Take the tour ×

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?

share|improve this question
add comment

1 Answer

up vote 17 down vote accepted

Look at the second and third parameter of the addHeaderView method. You can simply disable interaction with

getListView().addHeaderView(view, null, false);
share|improve this answer
Excellent, thanks! –  Finbarr Mar 31 '11 at 23:44
Finbarr I can has accept? ;-) –  Mannaz Mar 31 '11 at 23:48
You certainly can. SO enforces a time limit on accepts so I couldn't accept immediately. –  Finbarr Apr 1 '11 at 9:38
add comment

Your Answer


