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

Android Prorgram Crashes when i attempt to getText() from an autocompletetext

I am trying to build an android app that allows you to input text, and will then transfer the text to the main screen. It allows me to build the autocomplete with no issue, but whenever i try to invoke the getText() function, the entire program…
Daniel Imberman
  • 618
  • 1
  • 5
  • 18
0
votes
1 answer

How to use two or more autocompletetextview in the same layout?

I'm trying to make a layout with two AutoCompletetextViews, the problem is how to differentiate the .addTextChangedListener(this) from each one. I mean an EditText can be differentiated by its own View.getId(), and do different things depend on this…
Arnau S
  • 3
  • 1
0
votes
2 answers

HoloEverywhere AutoCompleteTextView java.lang.ClassCastException

I am trying to get the HoloEverywhere class AutoCompleteTextView to work with my app. The main reason for this is I want the Holo theme to work on pre 3.0 devices (specifically API levels 8-10) Here is my main activity code: package…
nommer
  • 2,730
  • 3
  • 29
  • 44
0
votes
2 answers

Check if a key from Hashmap is typed in an AutoCompleteTextView

I created an HashMap that i populated beforehand. And i want my AutoCompleteTextView to tell me, as i'm typing if it's in the HashMap or not. Here's my code so far : autocomplete.addTextChangedListener(new TextWatcher() { …
Tsunaze
  • 3,204
  • 7
  • 44
  • 81
0
votes
0 answers

How to set filter to AutoCompleteTextView?

I have some data in in arrayList allDoctorsAndSpecialities. In my Oncreate method I have set adapter and threshold(3) for my autotxt(AutoCompleteTextView) However,My problem is I don't want to show dropdown for strings entered in edittext like…
0
votes
2 answers

In AutoCompleteTextView, is there a way to use the act of selecting a suggestion as a means of pressing "enter" to submit the sugggestion

I have an AutoCompleteTextView, it gives a list of suggestions like it should, when you type something into the TextView. However, when you select the suggestion, you still have to hit Enter to not only remove the keyboard from the screen but to…
0
votes
1 answer

AutoCompleteTextView search input key in Adapter

I was searching on google and stackover could not find the exact solution. My problem is that, I have a ArrayList adapter and it has Gatewick London England Ory Paris France Heathrow London England If user enters "Lon" into…
Winston
  • 1,800
  • 2
  • 20
  • 30
0
votes
1 answer

Getting AutoCompleteTextView to respond to changes in SimpleAdapter

I am new to Android and experimenting with AutoCompleteTextView and different adapters. Having gotten it working with an ArrayAdapter (discussed here) I am now trying the same using a chain of two AsyncTasks. I have seen a couple examples of this…
planetguru
  • 425
  • 3
  • 14
0
votes
1 answer

Android 2.3.3 Search in AutoComplete in Hebrew does not work

Hey guys I'v been searching the web to find a solution for this problem and didn't find any (I hope there's one out there) My Problem: I set an AutoCompleteTextView and bind it to an array with data in Hebrew When i run the app and hit a letter in…
Bob Yaris
  • 19
  • 1
  • 6
0
votes
1 answer

Linked AutoCompleteTextView views. Selection in one changes list in other

I need to enter a location for a survey. The location consists of a sub place(s) name and a main place name. An example is Paris (Sub place) and France (main place). The sub place and main place options are represented in two AutoCompleteTextView…
Rynardt
  • 5,547
  • 7
  • 31
  • 43
0
votes
1 answer

Android - AutoCompleteTextView nullpointerexception from arrayadapter getcount()

I can't work out why I keep getting a nullpointerexception when I'm using an asyntask to fetch some search results from an api and populate an arrayadapter public class AddVenueActivity extends Activity implements TextWatcher{ private…
0
votes
1 answer

AutoCompleteText View using webservice api Giving me error in Android

I am trying to do the autocompleteTextView. I am trying the Wiki Example. For Wiki it works. But for my own api its not working. I am trying to call by lastname. I tried using the jSonObject. But looks like i am making some mistake. Here is my Code.…
dhiku
  • 1,818
  • 2
  • 22
  • 38
0
votes
2 answers

Custom AutoCompletevView like facebook comments field in android

I want to make custom AutoCompleteView like this.. It should be populated when my special character is added (like facebook.. When you type @B then all friends those name starts with 'B' will be populated and we can select name). It should not be…
0
votes
2 answers

The Drop-down content of AutoCompleteTextView

The Drop-down content of AutoCompleteTextView is the white word. But it can not be seen clear. How to deal with this? This is my code: ArrayAdapter myAdapter=new ArrayAdapter (this,android.R.layout.browser_link_context_header,…
DaringLi
  • 409
  • 2
  • 6
  • 16
0
votes
1 answer

setNotifyOnChange(true) not working

I have added below codes in onResume() method in my android activity. username.addTextChangedListener(this); usernames_adapter = new ArrayAdapter(this, android.R.layout.simple_dropdown_item_1line, …
Bishan
  • 15,211
  • 52
  • 164
  • 258