title: ActionBar SearchView not fully expanding in landscape mode
body: <p>When using the action bar search interface, the widget expands to occupy the full width of the screen in portrait mode, but stops short in landscape mode. </p>
  
  <p>Is there a way to set the expansion layout params on the SearchView to fully fill the action bar when the user is typing a search?</p>
  
  <p>See image:</p>
  
  <p><a href="https://i.stack.imgur.com/bEWks.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bEWks.png" alt="SearchView text field not using the full width in landscape mode"></a></p>
  
  <p>Note: I'm not currently using ActionBar Sherlock</p>
  
  <p>Edit: 
  Here's what I did to get it to extend the full width.</p>
  
  <pre><code>searchView.setOnSearchClickListener(new OnClickListener() {
      private boolean extended = false;
  
      @Override
      public void onClick(View v) {
          if (!extended) {
              extended = true;
              LayoutParams lp = v.getLayoutParams();
              lp.width = LayoutParams.MATCH_PARENT;
          }
      }
  
  });
  </code></pre>