title: Using ActionBarSherlock With the New SupportMapFragment
body: <p>I am looking at using ActionbarSherlock but have one query that's holding me back.</p>
  
  <p>So my application needs to be fully backwards compatible to API Level 7.</p>
  
  <p>I need to implement the new Google Maps in my application and to do that I need to use the SupportMapFragment class.</p>
  
  <p>** My Question ** </p>
  
  <p>Is it possible to use the <code>SupportMapFragment</code> class alongside <code>ActionBarSherlock</code>?</p>
  
  <p><strong>Thanks in advance</strong></p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have downloaded and had a look at the library. The only changes to the extended <code>Fragments</code> I can see are very simple and the same for all of them.</p>
  
  <p>Do you think I could add support myself?</p>
  
  <p>here is how they are supported.</p>
  
  <pre><code>package com.actionbarsherlock.app;
  
  import android.app.Activity;
  import android.support.v4.app.DialogFragment;
  import com.actionbarsherlock.internal.view.menu.MenuItemWrapper;
  import com.actionbarsherlock.internal.view.menu.MenuWrapper;
  import com.actionbarsherlock.view.Menu;
  import com.actionbarsherlock.view.MenuInflater;
  import com.actionbarsherlock.view.MenuItem;
  
  import static com.actionbarsherlock.app.SherlockFragmentActivity.OnCreateOptionsMenuListener;
  import static com.actionbarsherlock.app.SherlockFragmentActivity.OnOptionsItemSelectedListener;
  import static com.actionbarsherlock.app.SherlockFragmentActivity.OnPrepareOptionsMenuListener;
  
  public class SherlockDialogFragment extends DialogFragment implements OnCreateOptionsMenuListener, OnPrepareOptionsMenuListener, OnOptionsItemSelectedListener {
      private SherlockFragmentActivity mActivity;
  
  public SherlockFragmentActivity getSherlockActivity() {
      return mActivity;
  }
  
  @Override
  public void onAttach(Activity activity) {
      if (!(activity instanceof SherlockFragmentActivity)) {
          throw new IllegalStateException(getClass().getSimpleName() + " must be attached to a SherlockFragmentActivity.");
      }
      mActivity = (SherlockFragmentActivity)activity;
  
      super.onAttach(activity);
  }
  
  @Override
  public void onDetach() {
      mActivity = null;
      super.onDetach();
  }
  
  @Override
  public final void onCreateOptionsMenu(android.view.Menu menu, android.view.MenuInflater inflater) {
      onCreateOptionsMenu(new MenuWrapper(menu), mActivity.getSupportMenuInflater());
  }
  
  @Override
  public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
      //Nothing to see here.
  }
  
  @Override
  public final void onPrepareOptionsMenu(android.view.Menu menu) {
      onPrepareOptionsMenu(new MenuWrapper(menu));
  }
  
  @Override
  public void onPrepareOptionsMenu(Menu menu) {
      //Nothing to see here.
  }
  
  @Override
  public final boolean onOptionsItemSelected(android.view.MenuItem item) {
      return onOptionsItemSelected(new MenuItemWrapper(item));
  }
  
  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
      //Nothing to see here.
      return false;
  }
  </code></pre>
  
  <p>}</p>