title: How to set the title of a menu in Android
body: <p>I'm trying to dynamically set the title of my menu.</p>
  
  <p>Retrieving and setting it as such:</p>
  
  <pre><code>ItemView menuTitle = ((ItemView) findViewById(R.id.menu_filter));
  menuTitle.setTitle("TITLE_HERE");
  </code></pre>
  
  <p>works just fine so long as it's in the <code>onOptionsItemSelected(MenuItem item)</code> method.</p>
  
  <p>I haven't been able to find a way to set this from the <code>onPrepareOptionsMenu</code> or <code>onCreateOptionsMenu</code> methods as <code>findViewById</code> returns null (even after inflating the menu).</p>
  
  <p>Oddly enough there doesn't seem to be anything in the documentation for accomplishing this and google searches haven't turned up much for such a seemingly simple problem.</p>