I have two SearchViews in my toolbar and I would like to enable the blinking cursor so that I can see which searchView I'm currently typing in. When I start typing in the SearchView no cursor is available. When I type some more and then touch the text I typed, a blue pointing shape points to the clicked text location -- but no cursor appears.
How do I enable the black blinking rectangular line cursor programmatically?
Some things I've tried:
- Changing cursor color incase it was invisible - StackOverFlow
- searchView.setFocusable(), searchView.requestFromTouch()
Maybe its something wrong with setting up my searchView? Heres my setupSearchView code:
SearchManager searchManager = (SearchManager)getActivity().getSystemService(Context.SEARCH_SERVICE);
searchView.setSearchableInfo(searchManager.getSearchableInfo(getActivity().getComponentName()));
searchView.setIconified(false);
searchView.setonActionExpanded();
searchView.setQueryHint(hint);
searchView.setFocusable(true);