I have to set some predefined values to MultiAutoCompleteTextView
(before I select from suggestion drop down list). It's like, as if you selected 2-3 items from drop-down list. After setting these predefined values, again I want to continue with normal process of filtering from the list and add it to MultiAutoCompleteTextView
.
It would look like this
Predefined1, Predefined2, Predefined3,
If I do setText(...) as you do with TextView
or EditText
, with some comma separated values, its considering it as 1 whole word and adding a comma at the end.
Please suggest how can I implement it.
Edit :
Okay. Let me explain in detail. I am trying to achieve like in this and this. But, 1 extra requirement from this is that, along with selecting value from suggestion drop down, I also need to set some predefined values when View is displayed and when I write something and press enter/hide keyboard, whatever i wrote should be converted into button text. If it's not possible, any other alternative? Please suggest.
Edit :
These values should be there in view without selecting from drop down. Later, whichever users add from suggestion drop down, those also should be added to list.
It's like setting hint or some text to EditText
before user starts typing.
Thanks.