Skip to content

SearchView 在展开后,EditText默认弹出软键盘 ,但想默认隐藏解决方法 #23

Description

@chufengma

把清除焦点的方法post的UI线程

searchView.onActionViewExpanded();
searchView.post(new Runnable() {
            @Override
            public void run() {
                searchView.clearFocus();
            }
 });

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions