I have a listview with a base adapter. I have an inflater which gives the style for each item of my list, but the thing I want to do is to add a view at the beginning of the listview with a different inflated layout.
Is this possible?
I have a listview with a base adapter. I have an inflater which gives the style for each item of my list, but the thing I want to do is to add a view at the beginning of the listview with a different inflated layout.
Is this possible?
Yes. There's two ways of doing it. The first is to add a listview header. The second is to add an item to your adapter that holds the first place in the list, and map it as if it was an item.
Possible duplicate of Android ListView headers
This might also help. http://stacktips.com/tutorials/android/listview-with-section-header-in-android