Questions tagged [autocompletetextview]

AutoCompleteTextView is an Android widget that automatically shows complete suggestions as the user types.

The AutoCompleteTextView obtains the list of suggestions from filtering its Adapter (which must be set to allow complete suggestions) using the text the user enters in the widget's input area. To trigger the list of suggestions the user must insert a minimum number of characters defined by the threshold attribute.

Useful links

1455 questions
16
votes
12 answers

Android: AutoCompleteTextView hide soft keyboard

I have an AutoCompleteTextView which as usual provides suggestions after a user types 3 letters. I want once once I touch the suggestion list to hide the soft keyboard. What I have done below with the table layout hides the keyboard only when…
ChrisGeo
  • 3,807
  • 13
  • 54
  • 92
16
votes
7 answers
15
votes
6 answers

How to change text size in places autocompletefragment in android?

I am using the PlaceAutocompleteFragment that is provided by google in a project that I am working on right now. But the problem is I need to display the place name that I've selected from the autocomplete widget but the whole text in not showing…
15
votes
2 answers

AutoCompleteTextView float hint

I've tried a lot, but can't make work an AutoCompleteTextView float hint using the TextInputLayout from support. It's possible or I need to use an external library?
15
votes
3 answers

Getting name and email from contact list is very slow

I'm implementing an AutoCompleteTextView and I need Name and E-Mail of all my contacts. I found this snippet that I'm running asynchronously but it's very slow. ContentResolver cr = getContentResolver(); Cursor cur =…
MataMix
  • 3,276
  • 10
  • 39
  • 58
14
votes
2 answers

How to customize AutoCompleteTextView dropdown on Android

I would like to know how, if it can be done, to customize the color of the dropdown from the AutoCompleteTextView when selected. I can customize everything else, but not the selected color ie - it stays the same. In the…
kevinksmith
  • 261
  • 1
  • 2
  • 7
14
votes
1 answer

How to use AutoCompleteTextView with RecyclerView.Adapter but not with ArrayAdapter in android

I have a condition where auto suggest need to be implemented. For that purpose, I have been trying to use the custom RecyclerView.Adapter.But the problem is,AutoCompleteTextView seems to be made for BaseAdapter and its child class. Therefore, the…
Ait Bri
  • 498
  • 6
  • 15
14
votes
7 answers

Select item from AutoCompleteTextView in uiautomator

UPDATE This project is no longer maintained today, but solutions are most welcomed. Thanks. I am creating an automation test project in which I have issue to select the item from the AutoCompleteTextView. You can see the snap and the views[all…
14
votes
5 answers

Remove underline from AutoCompleteTextView via xml

i have this view:
giozh
  • 9,868
  • 30
  • 102
  • 183
14
votes
3 answers

SearchView remove blue focus line and show cursor at certain position

I have been trying to remove the blue focus line in the SearchView .I am casting it to a AutoCompleteTextView so that I can use customized icons for my searchView. int id =…
14
votes
2 answers

How to dynamically add suggestions to autocompletetextview with preserving character status

Problem Description: I am facing some problem with AutoCompleteTextView where I have to show suggestions after each keypress. Thing is that, list of suggestion is dynamic like google's suggestion feature. It means the new suggestions should be added…
14
votes
4 answers

AutoCompleteTextView doesn't show dropdown when I press space after typing a complete word

My main activity code: // here you put all your data. String[] dataArray = { "Amit sharma Kumar", "Hisham Kumar Munner", "Vineet John Chaturvedi", "Lucky Kumar Verma" }; ArrayList alAutoCompleteList; AutoCompleteTextView…
Hisham Muneer
  • 8,558
  • 10
  • 54
  • 79
13
votes
2 answers

Autocompletetextview dropdown behind soft keyboard in dialog fragment

I have a dialog fragment in my app with an autocompletetextview in it, but the drop-down list instead of align with the soft keyboard's top, is placed behind, not giving access to some of the items. Here is the layout:
13
votes
1 answer

Constraint on performFiltering returns null on first character

I wrote a custom Filter for an AutoCompleteTextView. It works fine, but one small thing. The Constraint on performFiltering is null on the first character. Meaning the filtering process starts only when the second character is put into the…
Rutger
  • 323
  • 3
  • 8
12
votes
1 answer

How do I use publishResults() method when extending Filters in Android?

I'm working on an autocompletetextview that will work off of a key value system, and am trying to find out what I need to do to make publishResults work, as the results param being passed to publishResults here is correct in the debugger, however I…
blackbourna
  • 1,223
  • 2
  • 16
  • 29