title: Add extra filtering options to SearchView android
body: <p>Lately, I decided to switch from my custom SearchBox to the SearchView provided by the Android v7 support library.</p>
  <p>However, I was using a custom Button to provide extra filtering options (through a PopupMenu) because the API that provided my app with data has the option to add more parameters to the search query.
  I inflated the custom SearchBox with the filter button in place and the whole thing worked properly, only the real material design was missing.</p>
  <p>Correct me if I am wrong but I think there is no button or menu to provide extra filtering options.</p>
  <p>I've searched Google on how to add a button to the SearchView and the things that I found were just not doing the trick for me.</p>
  <p>So my question/problem is, how do I add extra filtering options (preferably with a custom button or at least an option to set the OnClick listener) the proper way without breaking the guidelines?</p>
  <p>I have tried to get the LinearLayout from the SearchView with the Identifier android:id/submit_area, using</p>
  <pre><code>int parentLayoutId = searchView.getContext().getResources().getIdentifier(&quot;android:id/submit_area&quot;, null, null);
  LinearLayout parent = (LinearLayout) searchView.findViewById(parentLayoutId);
  </code></pre>
  <p>But nothing is found with that Id.
  When debugging the app, I can see the ID of the LinearLayout named submit_area (and it's different than the parentLayoutId, but I don't want to hardcode the id into the app).</p>
  <p>Am I doing it completely wrong or is it not possible at all?</p>
  <p>Note: I've seen how the YouTube app gives you filtering options after you have searched, but that is not really ideal since I've got a limited amount of API requests available every month.</p>