I am unable to set the numeric input type in SearchView in my ActionBar. I have the following searchable.xml file in my res / xml folder:
<searchable xmlns:android="http://schemas.android.com/apk/res/android" android:inputType="number" android:label="@string/app_name" android:hint="@string/search_hint"> </searchable>
And I set the search configuration in SearchView as follows:
The search_hint function is set correctly, but the android line : inputType = "number" seems to have no effect, i.e. the numeric keypad is not displayed.
Does anyone have a solution for this?
source share