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
0
votes
1 answer

AutoCompleteTextView doesn't show suggestions

I have implemented the AutoCompleteTextView with custom adapter. In getFilter() Method I fetch suggestion from Server and display it. Now If i type one by one character slowly it works very well but when i start typing fast it sometime show…
yash
  • 151
  • 1
  • 2
  • 11
0
votes
4 answers

I have an array and i want to get the equivalent index of specific item(selected from autocomplettextview)

this is my mainactivity TestAdapter mdh = new TestAdapter(this); mdh.open(); ArrayList songs = mdh.getAllSongs(); ArrayAdapter adapter = new ArrayAdapter(this, …
0
votes
1 answer

Detecting if AutoCompleteTextView key on text field or selection

Ok, here is my situation. I have a AutoCompleteTextView that has to have a listener for OnKey, which is fine, but I only want to consume the onKey if the view that is "keyed" is the actual text field, not one of the autocomplete selections. In case…
TheMethod
  • 2,893
  • 9
  • 41
  • 72
0
votes
0 answers

Custom autocompletetextview adapter not filtering and inputting weird strings

I have made a custom adapter for a autocompletetextview, but it's not filtering on the text and inputting weird strings when you select a item. Like this string: listadapters.LocatieRowItem@BSE433q4e30 I have made this adapter so the first item of…
0
votes
0 answers

Android AutoCompleteTextView, prevent all behaviours onItemClick

I have checkboxes inside each item on the dropdown suggestion from the AutoCompleteTextView. Now i want to prevent the suggestion onItemClick? So Preventing of suggestion in the textview field and also preventing the suggested dropdown list to be…
Developer
  • 17
  • 2
0
votes
4 answers

How to create Toast from AutoCompleteTextView selected item?

I am a newbie android learner. I am trying to create toast when the item from the AutoCompleteTextView is selected by the user. I am reading the value from strings.xml ,which is working fine but i am confused how do I (what even handler) i needed to…
ilatif28
  • 21
  • 1
  • 5
0
votes
1 answer

Android Custom AutoCompleteTextView with Custom Adapter

Basically, I wish to write something in the edittext, then a web http request will be called that returns a JSONObject which contains a JSON array, which contain the values somewhere inside it. I need to populat the dropdown list that comes with…
0
votes
1 answer

Android add footer view for AutoCompleteTextView

I would like to add a footer view to the drop down list of an AutoCompleteTextView. Any idea about how doing this?
suresh cheemalamudi
  • 6,190
  • 11
  • 49
  • 67
0
votes
1 answer

Custom layout and filter for AutoCompleteTextView

I have created my own adapter which extends BaseAdapter implements Filterable. 1. I am occasionally getting index out of bounds error, in getView method: private ArrayList originalData; private ArrayList
JanBo
  • 2,925
  • 3
  • 23
  • 32
0
votes
1 answer

Errors with custom BaseAdapter for AutoCompleteTextView(indexOutOfBounds & content changed but no notification)

I have created my own adapter which extends BaseAdapter implements Filterable. I am occasionally getting index out of bounds error, in getView method: private ArrayList originalData; private ArrayList
JanBo
  • 2,925
  • 3
  • 23
  • 32
0
votes
1 answer

Android:How can i make an AutoCompleteTextView to pass the text from a website and show me the results

How can i make an AutoCompletTextView to pass the text from a website and show me the results in ListView
user2359550
0
votes
1 answer

Change color of certain element in AutoCompleteTextView

I am using AutoCompleteTextView and getting the suggestions well, I want to disable the TextView present at position 1 which I am able to do. The main issue is I want to set color of TextView present at position 1 to black. I have set its color…
Pratik
  • 1,531
  • 3
  • 25
  • 57
0
votes
1 answer

set ArrayAdapter vs cursorAdapter for an AutoCompleteTextView

I have an autoCompleteTextView which i want to populate with values that are kept in a database. The number of values in the column might some day reach in thousands(according to the use). I am unsure about the performance of the ACtextView incase I…
0
votes
1 answer

Force the AutoCompleteTextView show "fixed" items on focus/touch or when text is empty

I have an ACTV which is used to show geo-suggests (via GeoCoder etc.). It's working like charm. Now I want to force the ACTV to show the history - previously found geolocations - as a drop down when the user touches the empty ACTV or the text size…
injecteer
  • 20,038
  • 4
  • 45
  • 89
0
votes
1 answer

OnItemSelectedListener does not reached when selecting item fron spinner and AutoCompleteTextView

I'm trying to set OnItemSelectedListener to a Spinner and a AutoComplete textView and according to my logcat the whole OnItemSelectedListener is never reached CODE: public class ContactEditFragment extends Fragment implements OnClickListener, …