I have AutoCompleteTextView attached to my view, and used ArrayAdapter to populate for list of items. But I am unaware of how to add header and footer view for AutocompleteTextView drop down’s item.
I know we can add header and footer in listview.
Any suggestions ?
On an AutoCompleteTextView, you don’t have direct access to the DropDownListView, that’s why you cannot add header and footer views there.
A solution to your problem will be to use 2 types of views in your list, and set the first/last row to have the header’s/footer’s layout. This can be done on the adapter, which you create yourself.
Here’s some info about how to provide different layouts for different rows in a list view:
Android ListView with different layouts for each row