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
12
votes
5 answers

Android AutoCompleteTextView shows object information instead of text in landscape mode

I am using a Custom Adapter with AutoCompleteTextView. It works fine on the emulator and my tablet. However, there is an issue on my phone in landscape mode. The auto complete hints being shown in this mode are object info rather than text. However,…
Sriman
  • 788
  • 9
  • 25
12
votes
3 answers

How to set Adapter to Auto Complete Text view?

I need adapter data set to the auto complete text view in android .
Rajender Reddy
  • 447
  • 2
  • 4
  • 8
11
votes
3 answers

Keyboard hides AutoCompleteTextView dropdown

I have an AppCompatAutoCompleteTextView at the bottom of a DialogFragment. On tablet (API 19) in landscape mode the dropdown is covered by the keyboard when there is only one element in the suggestion list. When there are more elements, the dropdown…
N. Nagy
  • 111
  • 1
  • 4
11
votes
4 answers

Remove Shadow From AutoCompleteTextView Dropdown

I am trying to create a full width auto complete text field. So far, I think I have the text field itself looking right. The problem is with the auto complete popup. It has this very bold shadow all around it and I just can't get rid of it. Don't…
Gofilord
  • 6,239
  • 4
  • 27
  • 43
11
votes
2 answers

AutoCompleteTextView drop down height limited in dialog popup

The dialog pop-up is located here. How the AutoComplete results stop at the end of the pop-up view is here. I want the results to drop down past the dialog's view to the parent view. If I can't do that then I want to limit the number of results the…
Mitch D
  • 111
  • 1
  • 4
11
votes
7 answers

Items in the drop down list of AutoCompleteTextView are not visible. How to change their color..?

I have made an AutoCompletetextView. The items in the dropdown of AutoCompleteTextView are not visible. How to change the color of of those items. This is how it looks:
Vipul J
  • 6,641
  • 9
  • 46
  • 61
10
votes
3 answers

Remove dropdown arrow from AutoCompleteTextView

I want to remove dropdown arrow which is created by AutoCompleteTextView when I use TextInputLayout and use Style: ExposedDropdownMenu Below is my code:
10
votes
1 answer

Android AutoCompleteTextView onItemSelectedListener not triggered with a bluetooth keyboard

I have a simple app that contains just an AutoCompleteTextView (code below). I have the OnItemClickListener and OnItemSelectedListener defined. Clicking on the individual items from the dropdown suggestions triggers the onItemClick event. However,…
Some guy
  • 1,210
  • 1
  • 17
  • 39
10
votes
2 answers

How to create custom BaseAdapter for AutoCompleteTextView

I've been having difficulty creating a custom ArrayAdapter for AutoCompleteTextView such errors that would come up despite following code found on the internet would be: Dropdown would not appear. Custom Objects and their details would not…
10
votes
3 answers

AutoCompleteTextView with Google Places shown in ListView just like Uber

I need to make screen similar to this. I think it has autocompletetextview and listview to display returned results. Google Place API is used here to auto suggest places and listview adapter is updated accordingly. Please any kind of help is…
10
votes
3 answers

How to set the cursor to the right (EditText)?

How to set the cursor to the right with right align and hint text? Is it possible? I have a AutoCompleteTextView and a EditText with Text right align and an hint text. Now if one of them is focused the curser is before the hint and not at the end of…
rala
  • 895
  • 2
  • 18
  • 43
10
votes
3 answers

How to show AutoCompleteTextView suggestions in landscape orientation

AutoCompleteTextView displays it's suggestions in a dropdown in the portrait mode.I would like to display suggestions either in a dialog or in a dropdown in the landscape mode,here the EditText and the keyboard go full screen. Which layout should I…
vamsiampolu
  • 6,328
  • 19
  • 82
  • 183
9
votes
4 answers

Custom AutoCompleteTextView behavior

Out of the box, the AutoCompleteTextView widget does not seem to be able to match the input string in the middle of a list value - the matches are always made at the beginning; e.g., entering "ar" matches "argentina", but not "hungary". How can I…
Chrishan
  • 4,076
  • 7
  • 48
  • 67
9
votes
2 answers

How to filter results of AutoCompleteTextView?

I have an AutoCompleteTextView set to use a cursor which goes over my Contacts. The problem is, I have it populating the dropdown correctly, but its not filtering the results after I type. Here is my code for the cursor and setting of the…
John Leehey
  • 22,052
  • 8
  • 61
  • 88
9
votes
1 answer

How to add Material Design Chips to input field using autocomplete in android?

I am trying to implement Material Design Chips with AutoCompleteTextView in order to add Contact Chips in an input field when the user clicks on an autocomplete suggestion (like Gmail Recipient Chips). The desired behaviour can be seen on Material…