Skip to content

hide the filterable list + request focus to open keyboard #98

@crearo

Description

@crearo

For the most part of it, this library is great. However, I've been pulling my hair over simple issues.

  1. How do I hide the filterable list manually? Once it's open, there's no way to close it other than clicking an item. I've tried
  • mChipsInput.setFilterableList(new ArrayList<ChipInterface>());
  • mChipsInput.getEditText().getFilterableListView().fadeOut();
  • mChipsInput.getEditText().getFilterableListView().fadeOut();
  • mChipsInput.getFilterableList().clear(), and called mChipsInput.invalidate() afterwards

The view logic is just so poorly designed, none of these seem to work. I've been digging into the source code and see that fadeOut() is to hide it from within the library. Why doesn't it work when used as an api?

  1. Open the soft-keyboard automatically when the mChipsInput is clicked.
    I've tried the following:

     mChipsInput.requestFocus();
     mChipsInput.getEditText().requestFocus();
     openKeyboard(mChipsInput.getEditText());  // this uses the InputManager to open the keyboard on this view.
     mChipsInput.getEditText().performClick();
    

Again, none of these work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions