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 7686427
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:28:42+00:00 2026-05-31T19:28:42+00:00

I have Auto completed text view,i want to filter the items present in the

  • 0

I have Auto completed text view,i want to filter the items present in the listcli arraylist.i enter the text “te” means it shows text as Apple test,Dmn test,Testing,Test 124 etc.But i want to show only Testing,Test 124 etc only.How can i filter these text?Also after enter the text,i click the next button in keyboard it doesn’t go for the next edit text field,How do control this the keyboard?

client.addTextChangedListener(new TextWatcher() {

            public void onTextChanged(CharSequence s, int start, int before,
                    int count) {
                // TODO Auto-generated method stub
                cli = client.getText().toString();
                actionvalues = ReadXML.getXmlData("WebService", Base_Url
                        + "GetclientList?xml=" + client.getText().toString(),
                        "ClientList", "Client", "CID", "ClientName");

                for (int i = 0; i < actionvalues.size(); i++) {
                    String client = actionvalues.get(i).get("ClientName")
                            .toString();

listcli is array list

listcli.add(client);

            }


            adapter = new ArrayAdapter<String>(SalesActivity.this,
                    android.R.layout.simple_dropdown_item_1line,listcli);
            client.setAdapter(adapter);
  • 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-05-31T19:28:44+00:00Added an answer on May 31, 2026 at 7:28 pm

    let arr[20] be the array of strings for autocomplete text view

     new Thread(new Runnable() {
              public void run() {
    
              while(bool){
    
                  s2=ac.getText().toString();
              if(s1!=s2 && s2.length()>=1){
                                  for(int i=0;i<20;i++)
                                   {
                                      int k=arr[i].indexOf(s2);
                                      if(s2==0){lst.add(search[i]);}<---lst is the list of strings to be displayed
    
                                    }
                                    }
                                   runOnUiThread(new Runnable() {
                     public void run() {
                         adapter.clear();
                         for(int z=0;z<k;z++){
    
                             adapter.add(s[z]);
                         }
                         adapter.notifyDataSetChanged();
    
    
    
                    }
                });
             }}).start();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created an Activity with a AutuCompleteTextView[ACTV] and button. I enter some text
I have a list in my model, EmployeeList In my View I want to
I'm implementing a basic search text box->button, but I also want to have the
We have an auto-complete list that's populated when an you send an email to
Guys i am very new to jQuery. I have started using the auto complete
I'm using Fluent NHibernate, and auto-mapping the classes. I have a computed property in
I have a view function which renders json. I am able to specify which
My requirement is to implement auto complete in my text box with my rails
I have the JQuery AutoCompletion plug installed and working on 4 input text boxes,
I have the following set up, a ddl (ddlProd, radBuyer) and autocomplete text box

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.