I'm building a zip code search page for my Android app so I want to force the user to enter 5 numeric digits. I've searched everywhere and I don't see any way to for the Search Dialog. I know that text entry fields can be set to a numeric type, how do I do that for the Search Dialog?
Android Search Dialog how do I restrict input to numbers only?
398 Views Asked by Alan Moore At
2
There are 2 best solutions below
1

In the searchable
that you have defined, you can set the input type.
For more info refer here:
http://developer.android.com/guide/topics/search/searchable-config.html
Hope this helps!
You can use Searchable Configuration
In That you can Specify
For more information
http://developer.android.com/guide/topics/search/searchable-config.html