title: ActionBar in a DialogFragment
body: <p>In the Calendar app on my Galaxy Tab 10.1, when creating a new event a dialog comes up with Done and Cancel buttons in the title bar/action bar area.</p>
  
  <p><img src="https://i.stack.imgur.com/uV5Jd.png" alt="enter image description here"></p>
  
  <p>I'd like to implement this in my app.  I've tried using <code>setHasOptionsMenu(true)</code> in addition to overriding <code>onCreateOptionsMenu</code> in my <code>DialogFragment</code> subclass, but my action items do not appear.  I've also tried calling <code>getDialog().getActionBar()</code> from within <code>onCreateView</code> but it always returns <code>null</code>.</p>
  
  <p>I am able to get this working if I start an <code>Activity</code> rather than showing a dialog but that takes up the whole screen.  Is there a standard way to do this using a <code>DialogFragment</code>?</p>