title: How to set a SearchView's input type to numeric
body: <p>I currently have a <code>SearchView</code> in my app's <code>ActionBar</code> (of which I am populating from an XML layout file) and I am trying to force it to only take numeric input. I've tried setting the <code>android:inputType="number"</code> attribute in XML, but it has no effect.</p>
  
  <p>Does anyone know the source of this problem?</p>
  
  <p>The XML menu resource:</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt;
      &lt;item
          android:id="@+id/search"
          android:title="@string/menu_search"
          android:actionViewClass="android.widget.SearchView"
          android:icon="@drawable/ic_menu_search_holo_light"
          android:inputType="number" /&gt;       
  &lt;/menu&gt;
  </code></pre>