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

Disable Android AutoCompleteTextView after user selects item from drop down

I'm using Android's AutoCompleteTextView with a CursorAdapter to add autocomplete to an app. In the view's onItemClickListener() (i.e. when the user touches one of the autocompleted drop down items) I retrieve the text and place it in the EditText…
20
votes
12 answers

AutoCompleteTextView force to show all items

There is a moment in my app, that I need to force to show all items in the suggestion list, no matter what the user has typed. How can I do that? I tried to do something with filtering, but for me as a beginner filtering is just way too complicated,…
XCoder
  • 295
  • 1
  • 2
  • 10
19
votes
5 answers

How can I avoid autocomplete dropdown appearing when text is programmatically set?

I have an AutoCompleteTextView in my layout. I also have an alternative way to select the same items which are present in the AutoCompleteTextView. When the alternative way is selected, I populate the value in the AutoCompleteTextView…
Chris Knight
  • 24,333
  • 24
  • 88
  • 134
19
votes
2 answers

Android, Autocomplettextview, force text to be from the entry list

Is there a way to force the entry in an autocompletetextview to be one of the elements in the entrylist? I've found a method called "performValidation" but im not sure what it actually does, and i havent been able to find much documentation or any…
Drublic
  • 660
  • 1
  • 9
  • 23
19
votes
1 answer

AutocompleteTextview and CompletionHintView

I'm currently implementing an autocomplete field by using the AutocompleteTextView component. I'm trying to add a completion hint with the number of results, and just want to style it differently from the dropdown list element. There is an attribute…
Tonio34
  • 191
  • 1
  • 4
19
votes
5 answers

Android AutoCompleteTextView DropDown Position

I am using following code for auto complete however, dropdown items comes above the AutoCompleteTextView. I want it to show up beneath the AutoCompleteTextView. How can I do that? package com.example.autocomplete; import…
Figen Güngör
  • 12,169
  • 14
  • 66
  • 108
19
votes
2 answers

Combine Spinner and AutoCompleteTextView

I am asking myself if it is possible, to combine a Spinner and a AutoCompleteTextView. Basically I want an AutoCompleteTextView, that shows all entries from Array when I click it. Does anybody know how to do that?
user2710805
  • 743
  • 1
  • 5
  • 9
18
votes
6 answers

Espresso AutoCompleteTextView click

So I recently started messing around with Espresso in one of my existing Android projects. Everything went pretty decently, until I came to find AutoCompleteTextView in my program. I don't seem to understand how to properly click the first thing in…
18
votes
7 answers

Selected Item of Autocomplete Textview Show as simple Textview?

I am using an Autocomplete Textview which shows some names from database.I want to show a name in a textview which I selected from autocomplete textview.Here is my code: ArrayList s1 = new ArrayList(); for (StudentInfo cn :…
18
votes
7 answers

Scrolling drop-down-menu over the keyboard in autocompletetextview

I have an Autocompletetextview dropping down the suggestions list, up to the border of the soft-keyboard. Then, when scrolling over the suggestions list: - (in a gingerbread phone) the drop-down-menu automatically increases height covering the…
rmarau
  • 388
  • 1
  • 4
  • 12
18
votes
4 answers

Customize divider / separator in dropdown of an AutocompleteTextview

I've seen this question asked some other times on the site, but no one couldn't get any answer. Is there any way to customize the appearance of the divider in the dropdown showing when using an AutocompleteTextview in android? It's pretty easy for a…
tchoum
  • 312
  • 1
  • 2
  • 10
17
votes
6 answers

Change AutoCompleteTextView filter from "startsWith" to "Contains"?

I would like to change the default filtering in AutoCompleteTextView. The default filtering finds all strings that startsWith the given token. My project requires that the filtering should find all strings that contains the given token. Is it…
Caffe Latte
  • 1,693
  • 1
  • 14
  • 32
17
votes
4 answers

AutoCompleteTextView doesn't work when I enter first character

My AutoCompleteTextView doesn't work when I enter first character in textbox but starts showing dropdown when I enter second character. What could be the reason?
Figen Güngör
  • 12,169
  • 14
  • 66
  • 108
16
votes
3 answers

AutoCompleteTextView detect when selected entry from list edited by user

I have an AutoCompleteTextView I use to select an item from a long list. The user should only be able to select a predetermined item from the list. They should not be able to enter their own item. The way I check to make sure they submit only an…
Rynardt
  • 5,547
  • 7
  • 31
  • 43
1 2
3
96 97