i am using an AsyncTask class to search a word, so i want to appear the word “searching” in the list
while proccess is executed
Okay, what I want to do is to have a non clickable list until search is completed, in order to ,if searching word is clicked nothing happens…
Which is the correct way to do this?
Thanks a lot!
While you load, search and get data you can display a header view or/and a footer view in your
ListView. Simply add these views before setting the adapter. When you search for a word, callsetClickable(false)on theListViewand enable your header/footer view by, for example, callingaddFooterView(mFooterView)to show your message.Notice that you have to add the views before setting the adapter.
Example:
After this, feel free to call
addFooterView()to show your message and callremoveFooterView()to hide your message.