Disabling SearchView
I'm trying to disable a SearchView from my Activity . I tried the following code : mSearchView.setEnabled(false); mSearchView.setFocusable(false); mSearchView.setClickable(false); But it does not work. SearchView can still be clicked and KeyBoard popps up. I want it to become greyed out and unclickable. How can I accomplish this? None of the stated answers were sufficient for my needs, so I would like to provide another one for anybody in the same situation. A SearchView is made up of different Views, which can be - and in this case have to be - addressed individually. If you want your