I want to make a the first listview item persistent. I've edited my adaptor but sadly it is still destroying the first view and creating a new one. The reason I want to do this is becuase the first content of the list contains navigation views, and changes I make to that view gets removed when the list is reloaded. Does Array adapter have some kind of ondestroy method so i can catch it from there?
1
-
4add that view as a header to listview – Raghunandan Jan 14 '14 at 5:42
-
Ok thanks @Raghunandan I did not know you could do that, haha. – Marlon Jan 14 '14 at 6:18
0
As @Rag has pointed out using
myListView.addHeaderView(View);
is the way to do this.