title: Android, Logcat gives error about SearchView class
body: <p>i have installed the support library to get the action bar worked also in android pre API 11</p>
  
  <p>When i start the application, the logcat give this error:</p>
  
  <pre><code>08-20 19:54:41.600: I/dalvikvm(9828): Failed resolving Landroid/support/v7/widget/SearchView$5; interface 809 'Landroid/view/View$OnLayoutChangeListener;'
  
  08-20 19:54:41.600: W/dalvikvm(9828): Link of class 'Landroid/support/v7/widget/SearchView$5;' failed
  
  08-20 19:54:41.600: E/dalvikvm(9828): Could not find class 'android.support.v7.widget.SearchView$5', referenced from method android.support.v7.widget.SearchView.addOnLayoutChangeListenerToDropDownAnchorSDK11
  
  08-20 19:54:41.600: W/dalvikvm(9828): VFY: unable to resolve new-instance 734 (Landroid/support/v7/widget/SearchView$5;) in Landroid/support/v7/widget/SearchView;
  
  08-20 19:54:41.600: D/dalvikvm(9828): VFY: replacing opcode 0x22 at 0x0002
  
  08-20 19:54:41.600: D/dalvikvm(9828): VFY: dead code 0x0004-000a in Landroid/support/v7/widget/SearchView;.addOnLayoutChangeListenerToDropDownAnchorSDK11 ()V
  </code></pre>
  
  <p>Can someone help me, i search around the web but i found nothing.
  Thank you</p>
  
  <p>MainActivity.Java</p>
  
  <pre><code>    package com.example.fanculo;
  
      import android.os.Bundle;
      import android.app.SearchManager;
      import android.content.Context;
      import android.support.v4.view.MenuItemCompat;
      import android.support.v7.widget.SearchView;
      import android.support.v7.app.ActionBar;
      import android.support.v7.app.ActionBarActivity;
      import android.view.Menu;
      import android.view.MenuItem;
  
  
      public class MainActivity extends ActionBarActivity{
  
  ActionBar actionBar;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      actionBar = getSupportActionBar();
      actionBar.setTitle("Test");
  
  }
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      getMenuInflater().inflate(R.menu.main, menu);
      MenuItem searchItem = menu.findItem(R.id.action_search);
      SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);
  
       SearchView searchView = (SearchView) MenuItemCompat.getActionView(searchItem);
      // Configure the search info and add any event listeners
       searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));
       searchView.setIconifiedByDefault(true); 
      return super.onCreateOptionsMenu(menu);
  
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      switch (item.getItemId()) {
          case R.id.action_search:
              onSearchRequested();
              return true;
          default:
              return false;
      }
  }
  </code></pre>
  
  <p>}</p>