Set Numeric Input Type To Searchview In Actionbar
I don't manage to set the numeric input type to the SearchView in my ActionBar. I have the following searchable.xml file in my res/xml folder: Copy
or If not useful then try,
android:inputType="phone"
And let me know what happen.
Solution 2:
This should work :
SearchViewsearchView=newSearchView(getContext());
searchView.setInputType(InputType.TYPE_CLASS_NUMBER);
Solution 3:
try this
android:inputType="phone"
Post a Comment for "Set Numeric Input Type To Searchview In Actionbar"