Android ListView disables clicks and context menu in title?

I set the title view using getListView().addHeaderView(view);, and it is currently being processed in the same way as all the rest of the list lines in terms of clicks and context menus. How can I make the title action look more like a title? Alternatively, how can I add some content above ListViewthat is not part of myself ListView?

+5
source share
1 answer

Look at the second and third parameters of the addHeaderView method . You can simply turn off interaction with

getListView().addHeaderView(view, null, false);
+26
source

All Articles