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
8
votes
3 answers

Android AutoCompleteTextView crashes when remove text fast

I have a list of key words (about 1000 words) and i set this to an ArrayAdapter to be handled by AutoCompleteTextView. The basic process works fine. The problem arise when i selected a long word (10 character above), then use the keyboard backspace…
Thilek
  • 676
  • 6
  • 18
8
votes
5 answers

Spaces Not Working While Using Google Places Autocomplete API

When I type a space into my Android app I am no longer getting any results in my drop down. How can I fix this? I am encoding the input so I am not sure why it is not working... Before Space: After Space: I have looked on…
8
votes
2 answers

Setting multiple custom elements to MultiAutoCompleteTextView : Android

Continuing from my previous post, I was able to set multiple elements to the MultiAutoCompleteTextView but I was not able to wrap those items with custom background and close button as in that link picture. I was able to do the same with single…
Braj
  • 2,164
  • 2
  • 26
  • 44
8
votes
1 answer

Android custom layout for AutoCompleteTextView

I may be missing something simple here, but I have an AutoCompleteTextView that contains some very long items. When one is clicked, it shows the text correctly in the EditText and spans it over several lines. However, I want it to be in multiple…
Carrie Hall
  • 931
  • 3
  • 15
  • 30
8
votes
2 answers

Default dictionary missing on AutoCompleteTextView/MultiAutoCompleteTextView

We have a chat app for which we recently implemented native android keyboard. Further in addition to this we are implementing multiple autocomplete using MultiAutoCompleteTextView. Thiscan done by creating a custom tokenizer using the standard…
karora
  • 238
  • 1
  • 8
7
votes
3 answers

Android: AutoCompleteTextView with default suggestions

How do I show some default suggestions for AutoCompleteTextView before the user type anything? I cannot find a way to do this even with creating a custom class that extends AutoCompleteTextView. I want to show suggestions for common input values to…
Kenny Ma
  • 385
  • 1
  • 4
  • 8
7
votes
1 answer

AutoCompleteTextView crops the last row

I have a AutoCompleteTextView, the list for which is loaded from a custom ArrayAdapter. In the view, I have 2 lines one name and second is email id. My problem is that when I have a single item in the list, it crops the item. (Please see the…
Vinay
  • 2,395
  • 3
  • 30
  • 35
7
votes
1 answer

HowTo: AutoCompleteTextView as spinner replacement - but inside focus-flow

I've spent the best amount of the last two days puzzling on this. Actually I've wanted a spinner which behaves like a EditText inside a TextInputLayout (fancy hint, which flows away and is selected/entered if in the previous edittext the next/enter…
Dominik
  • 111
  • 1
  • 7
7
votes
3 answers

How to make Auto complete Text view Editable or not-Editable?

I want to make Auto complete TextView Editable or not editable according to my condition. I made Autocomplete text view as Editable constituency.setEnabled(true); constituency.setInputType(InputType.TYPE_CLASS_TEXT); …
basha
  • 587
  • 2
  • 6
  • 25
7
votes
1 answer

"android:dropDownAnchor" not working on Android Nougat (API 24)

I have created a simple AutoCompleteTextView like this :
kds23
  • 296
  • 3
  • 17
7
votes
2 answers

AutoCompleteTextView strange behaviour in LolliPop Device

I am using AutoCompleteTextView in my layout. But it's colorControlNormal and Activate is not Working as I expected. My Color value is #0072BA. Below is figure for Different Device. 1.) Android Kitkat 2.) Android LolliPop 3.) Android…
7
votes
2 answers

AutoCompleteTextView not working after fragment transition

I have searched a lot and tried many workaround - but none seems to work. In my fragment, I have AutoCompleteTextView with standard ArrayAdapter, which is dynamically filled in onActivityCreated() function (as below). All works fine when the…
user6119169
  • 131
  • 4
7
votes
1 answer

DisplayListCanvas is started on unbinded RenderNode (without mOwningView)

I'm trying to populate AutoCompleteTextView using my custom ArrayAdapter. I think it works fine with adding display values. The only problem is that no dropdown is being displayed. Does anybody know how to have this dropdown visible? Every time I…
7
votes
4 answers

how to get id of selected item in autocompletetextview in android

I am retrieving values from server for autocompletetextview, I am getting the list of user names along with their user ids, now what I want is when i select any username from list I want to get user id of that username. Please have look at my…
Rajesh Panchal
  • 1,140
  • 3
  • 20
  • 39
7
votes
2 answers

Android AutoCompleteTextView with '@' mentions filtering like twitter and facebook

I have a requirement for implementing an edit text that the user can type in a anything but when they type in a new word that starts with '@' the autocomplete should start showing potential users. I understand how to use the AutoCompleteTextView…