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
9
votes
2 answers

AutoCompleteTextView problem on lost focus

I have a AutoCompleteTextView within my activity that performs how it should. The dropdown bow is shown with correct entries etc. The problem is when the view looses focus the text is no longer visible. When focus is gained again the text is…
AverageMarcus
  • 903
  • 1
  • 9
  • 26
9
votes
5 answers

Place Snackbar at highest z order to avoid from being blocked by AutoCompleteTextView drop down

I have a Snackbar which is as follows: However, if the drop down of the AutoCompleteTextView is too long, the drop down will block the Snackbar. As you can see in the above image, the Snackbar is actually showing. However, its visibility is…
9
votes
5 answers

AutoCompleteTextView not completing words inside parentheses

I have implemented AutoCompleteTextView as follows: MainActivity.java ... public static String[] myData=new String[]{"Africa (AF)","America (AFM)","Apple (AMP)"}; text=(AutoCompleteTextView)v.findViewById(R.id.first_state); ArrayAdapter…
div
  • 1,475
  • 3
  • 22
  • 32
9
votes
4 answers

Android - AutoCompleteTextView not showing after setText is called

I'm having a weird issue with AutoCompleteTextView. I have a AutoCompleteTextView that shows suggestions of cities when typing in it. The list of cities is retrieved from a remote server via JSON. When I use the soft keyboard or the Mic Button on…
trancer
  • 135
  • 1
  • 7
9
votes
1 answer

AutoCompleteTextView allow only suggested options

I have a DialogFragment that contains AutoCompleteTextView, and Cancel and OK buttons. The AutoCompleteTextView is giving suggestions of usernames that I'm getting from server. What I want to do is to restrict the user to be able to enter only…
9
votes
3 answers

how to disable spell checker for Android AutoCompleteTextView?

I've searched for this problem but not found any answers for my case. I have an AutoCompleteTextView and some strings as suggestions (city names). Android marks them with red line. I think it's Android's spell checker. How can I prevent spell…
shift66
  • 11,760
  • 13
  • 50
  • 83
9
votes
4 answers

AutocompleteTextView with async suggestions doesn't show dropdown

I add TextChangedListener to AutocompleteTextView. In TextChangedListener's afterTextChanged() I invoke AsyncTask which loads data from web (loading all the data when activity starts is not an option because lists can be pretty large, so it becomes…
Eugene Chumak
  • 3,272
  • 7
  • 34
  • 52
8
votes
1 answer

SearchManager - adding custom suggestions

I've read all of the documentation online about building search interfaces and adding custom suggestions... but I'm still unclear on how this works. The documentation says that I must "Build a table (such as in an SQLiteDatabase) for your…
Alex Lockwood
  • 83,063
  • 39
  • 206
  • 250
8
votes
4 answers

Android : autocompletetextview, suggestion list displays above the textview?

did one of you ever run into that problem ? With some high resolutions screen it displays correctly : but the low resolutions it's not displaying correctly are not so low, for example, in galaxy spica (320x480px). I would like the keyboard to be…
8
votes
3 answers

Disable Google Password Manager list out saved passwords in Android?

I am unable to perform my android espresso unit test and it has failed with: // (kotlin…
8
votes
1 answer

MultiAutoCompleteTextView with dynamic adapter changes

I have a MultiAutoCompleteTextView widget in my Activity, which has an ArrayAdapter that is populated by a result from a web-based call. As the user types in characters in the textview, this adapter's list should get updated in the…
Rajath
  • 11,787
  • 7
  • 48
  • 62
8
votes
4 answers

Is it possible to implement Exposed Dropdown Menus using an spinner

Material design has an Exposed Dropdown Menu implemented with a AutoCompleteTextView like this:
8
votes
4 answers

How to set the size of an AutoCompleteTextView Result?

Does anybody know How to set the size of an AutoCompleteTextView Result ? I try android:textSize="12sp" But it only modify the size of the text in the TextView, not in the result.
zobi8225
  • 2,258
  • 4
  • 20
  • 20
8
votes
8 answers

Diacritics/international characters in AutoCompleteTextView

I have a (array) list Car Something Šibica Čavao Cavao Is there a way to "force" AutoCompleteTextView so if user type in letter "c" it would show Car Čavao Cavao so it would show standard letter and international letter (C and Č/Ć, S and Š, Z and…
svenkapudija
  • 5,128
  • 14
  • 68
  • 96
8
votes
2 answers

How to restrict AutoCompleteTextView dropdown dismiss?

I am working on a AutoCompleteTextView . I get some results when the users type in the AutoCompleteTextView and these are mandatory to select. But the problem is the drop down automatically dismisses when clicking on anywhere in the srceen. I want…
Syn3sthete
  • 4,151
  • 3
  • 23
  • 41