title: Combining android navigation drawer with the search box of Android Persistent Search Library
body: <p>I am developing an app in which I am using search bar from <a href="https://github.com/Quinny898/PersistentSearch" rel="nofollow noreferrer">Android Persistent Search Library</a> on github. In my app I have a default navigation drawer activity provided by android studio. The search bar looks like this:
  <a href="https://i.stack.imgur.com/SSaiC.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SSaiC.jpg" alt="persistent search box"></a></p>
  
  <p>I want to open my navigation drawer on clicking the hamburger icon in the search box. Is there any way of combining these two? Currently when I click the hamburger icon a method <code>onMenuClick()</code>
  is called and a toast is displayed saying "Menu Click".
  How can I change this <code>onClick</code> to open up my navigation drawer?
  Any help is appreciated.</p>
  
  <p>Here is the code of my activity:</p>
  
  <pre><code>public class MainActivity extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          SearchBox search = (SearchBox) findViewById(R.id.searchbox);
          search.enableVoiceRecognition(this);
  
          search.setLogoText("Enter your search term here...");
          search.setMenuListener(new SearchBox.MenuListener(){
  
              @Override
              public void onMenuClick() {
                  //Hamburger has been clicked
                  Toast.makeText(MainActivity.this, "Menu click", Toast.LENGTH_SHORT).show();
              }
  
          });
  }
  </code></pre>