klinker41 / android-chips

Chips in your AutoCompleteTextView on Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Method to create a new chip?

rayliverified opened this issue · comments

Hi,

I am probably missing something so hopefully someone can help. I would like to commit a new chip using a software button instead of the keyboard enter key. Is there a function I can call to do this? Most of the functions responsible for creating a new chip are private it seems. Hope this is simple!

Gonna leave the solution here.
Funny how you solve your problems the moment you ask for help. Asking for help does work :D
m_ContactView.onEditorAction(m_ContactView, EditorInfo.IME_ACTION_DONE, new KeyEvent(KeyEvent.KEYCODE_ENTER, KeyEvent.ACTION_DOWN));