@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);

    mDrawerFragment =
        (DrawerFragment) getSupportFragmentManager().findFragmentById(R.id.navigation_drawer);
    mDrawerFragment.setUp(R.id.navigation_drawer, (DrawerLayout) findViewById(R.id.drawer_layout));
  }
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {

    if (!mDrawerFragment.isDrawerOpen()) {
      getMenuInflater().inflate(R.menu.menu, menu);
      restoreActionBar();
      return true;
    }
    return super.onCreateOptionsMenu(menu);
  }
 @Override
 public boolean onCreateOptionsMenu(Menu menu) {
   if (!mNavigationDrawerFragment.isDrawerOpen()) {
     // Only show items in the action bar relevant to this screen
     // if the drawer is not showing. Otherwise, let the drawer
     // decide what to show in the action bar.
     getMenuInflater().inflate(R.menu.menu_questionnaire, menu);
     restoreActionBar();
     return true;
   }
   return super.onCreateOptionsMenu(menu);
 }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Intent intent = getIntent();
    ItemSection.Questionnaire questionnaire =
        (ItemSection.Questionnaire) intent.getSerializableExtra("questionnaire_name");
    switch (questionnaire) {
      case NURSE:
        sections = DataSource.nurseSections();
        break;
      case EVALUATOR:
        sections = DataSource.evaluatorSections();
        break;
      case PHYSICAL:
        sections = DataSource.physicalSections();
        break;
      case SOCIO:
        sections = DataSource.socioSections();
        break;
    }
    setContentView(R.layout.activity_questionnaire);

    context = this;
    mNavigationDrawerFragment =
        (DrawerFragment) getSupportFragmentManager().findFragmentById(R.id.navigation_drawer);
    mTitle = getTitle();

    // Set up the drawer.
    mNavigationDrawerFragment.setUp(
        R.id.navigation_drawer, (DrawerLayout) findViewById(R.id.drawer_layout));

    containerLayout = (FrameLayout) findViewById(R.id.container);

    sectionNumber = 0;
    questionNumber = 0;

    loadQuestion(sectionNumber, questionNumber);
  }