Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8376709
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:29:23+00:00 2026-06-09T15:29:23+00:00

i am using an AsyncTask class to search a word, so i want to

  • 0

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!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T15:29:24+00:00Added an answer on June 9, 2026 at 3:29 pm

    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, call setClickable(false) on the ListView and enable your header/footer view by, for example, calling addFooterView(mFooterView) to show your message.

    Notice that you have to add the views before setting the adapter.

    Example:

    LayoutInflater inflater = getLayoutInflater();
    mFooterView = inflater.inflate(R.layout.footer, null, false);
    mListView.addFooterView(mFooterView);       
    mListView.setAdapter(mAdapter);
    

    After this, feel free to call addFooterView() to show your message and call removeFooterView() to hide your message.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was using AsyncTask class... My objective is to have a list and when
I am using AsyncTask and want to use getApplication() to work with class Application.
In my application I have two threads (I'm using AsyncTask class). in doInBackground() method
I'm using AsyncTask class to execute WS methods. I would like to have a
I've using AsyncTask while retrieving data from a web service. I want to a
I have a method that is executed using asyncTask with a progressdialog. After this
I have a question on using AsyncTask class provided by Android sdk. I am
I do have a problem working with my application. I am using AsyncTask class
I am using the following code class AddTask extends AsyncTask<Void, Void, Void> { ProgressDialog
I have been using Asynctask most of time, but in the current app the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.