SearchView.OnCloseListener does not get invoked

后端 未结 9 620
慢半拍i
慢半拍i 2020-12-03 22:23

Im using an action bar and adding a searchView to it. I have implemented the searchView.onCLoseListener but this does not seem to be getting invoked. Any suggestions ?

9条回答
  •  北海茫月
    2020-12-03 22:44

    If you have set the

    searchView.setIconifiedByDefault(false)
    

    then, your searchView never closes as it is always in expanded mode. This is the reason why your onClose() is not being invoked.

提交回复
热议问题