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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:59:34+00:00 2026-06-18T01:59:34+00:00

Here in my app I create a dialog box which contain an autocomplete view.

  • 0

Here in my app I create a dialog box which contain an autocomplete view. In the autoComplete view I want it to pop down the suggestions.when I enter names. But the problem is that it gives only 2 suggestions.

Here is the code for my autocomplete view in the XML file

<com.example.netmdapp1.CustomAutoCompleteTextView
    android:id="@+id/customautocomplete"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textColor="@android:color/black"
    android:completionThreshold="3"
    android:scrollbars="vertical" />

And here is my CustomAutoCompleteTextView class

public class CustomAutoCompleteTextView extends AutoCompleteTextView {
    HashMap<String, String>hm;

    public CustomAutoCompleteTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    protected CharSequence convertSelectionToString(Object selectedItem) {
         hm = (HashMap<String, String>)selectedItem;
         return hm.get("name");
    }

    public String getid() {
        return hm.get("id");
    }
}

And the code for set adapter to my autocomplete textView is given below

final CustomAutoCompleteTextView autoComplete = new CustomAutoCompleteTextView(getParent(), null);
SimpleAdapter adapter = new SimpleAdapter(getParent(), patientList, R.layout.autocomplete_texts, from, to);
  • 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-18T01:59:35+00:00Added an answer on June 18, 2026 at 1:59 am

    I think you should have to look at this:
    android-immediate-auto-complete

    It will help you.

    Feel free to comment.

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

Sidebar

Related Questions

In my Android app I want to create a dialog window that contains an
Sorry, beginner here . . . So I create an NSMutableDictionary in my app
i have already this exception in my app but i want to create a
I am creating an android app which pulls in RSS Feeds from here http://spaceflight1.nasa.gov/realdata/sightings/cities/rss/index.cgi?country=United_Kingdom&region=England&city=Manchester
I am trying to create a dialog box that pops up when an activity
I have created an app which includes popups of different dialogs. Here is my
I am trying to create a custom dialog box that displays an image in
I am trying to create a simple list view with a search box at
In my application I want to show the the Dialog-box when press the back
I've been following the steps outlined here to create a Facebook App Login: http://developers.facebook.com/docs/howtos/login/server-side-login/

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.