title: Fragment overlay ActionBar and missing content in Fragment
body: <p>I could not solve this problem.<br>
  <a href="https://i.stack.imgur.com/l8mso.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l8mso.jpg" alt="enter image description here"></a></p>
  
  <p>Here my <code>Main activity</code>:  </p>
  
  <pre><code>public class MainActivity extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener, AttendanceFragment.OnFragmentInteractionListener {
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      ButterKnife.bind(this);
  
      setSupportActionBar(toolbar);
      ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
              this, drawer, R.string.nav_drawer_open, R.string.nav_drawer_close);
  
      drawer.addDrawerListener(toggle);
      toggle.syncState();
  
      navigationView.setNavigationItemSelectedListener(this);
  
      showAttendanceFragment();
  }
  
  
  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
      getMenuInflater().inflate(R.menu.nav_drawer, menu);
      return true;
  }
  private void showAttendanceFragment() {
      AttendanceFragment fragment = new AttendanceFragment();
      FragmentManager fragmentManager = this.getSupportFragmentManager();
      FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
      fragmentTransaction.replace(R.id.fragment_container,fragment);
      fragmentTransaction.commit();
  }
  
  
  @Override
  public void onFragmentInteraction(Uri uri) {
  
  }
  </code></pre>
  
  <p>}  </p>
  
  <p>Here the <code>main xlm</code>:  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:id="@+id/drawer_layout"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      tools:openDrawer="start"
      android:background="@color/primary"&gt;
  
      &lt;include
          layout="@layout/app_bar_main"
          android:layout_height="match_parent"
          android:layout_width="match_parent"/&gt;
  
      &lt;android.support.design.widget.NavigationView
          android:id="@+id/nav_view"
          android:layout_width="wrap_content"
          android:layout_height="match_parent"
          android:layout_gravity="start"
          android:fitsSystemWindows="true"
          app:itemTextColor="@color/accent"
          app:itemIconTint="@color/accent"
          app:headerLayout="@layout/nav_header_main"
          app:menu="@menu/activity_main_drawer"
          android:background="@color/primary"/&gt;
  
      &lt;FrameLayout
          android:id="@+id/fragment_container"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_marginTop="?attr/actionBarSize"/&gt;
  
  &lt;/android.support.v4.widget.DrawerLayout&gt;
  </code></pre>
  
  <p>The <code>bar</code>:  </p>
  
  <pre><code>&lt;android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      xmlns:tools="http://schemas.android.com/tools"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      android:fitsSystemWindows="true"
      tools:context=".MainActivity"&gt;
  
      &lt;android.support.design.widget.AppBarLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:theme="@style/AppTheme.AppBarOverlay"&gt;
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="@color/primary_darker"
              app:popupTheme="@style/AppTheme.PopupOverlay"/&gt;
  
      &lt;/android.support.design.widget.AppBarLayout&gt;
  
  &lt;/android.support.design.widget.CoordinatorLayout&gt;
  </code></pre>
  
  <p>and the <code>fragment</code>:  </p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context="com.example.hoangdang.diemdanh.Fragments.AttendanceFragment"&gt;
  
      &lt;TextView
          android:id="@+id/id1"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:text="@string/hello_blank_fragment" /&gt;
      &lt;TextView
          android:id="@+id/id2"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:text="@string/hello_blank_fragment" /&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>I tried use <code>linear layout</code> but not working</p>