title: How to display fragment on full screen?
body: <p>If I am using parent layout as container.. fragment is not visible
  and if i use child layout as container.. its displaying fragment in wrap_content, not in full screen.. even my fragment layout height is <code>match_parent</code></p>
  
  <p><a href="https://i.stack.imgur.com/yPfqk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yPfqk.png" alt="enter image description here"></a></p>
  
  <p>How to open fragment in full screen?</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:id="@+id/container"&gt;  &lt;!-- this id identifies fragment container --&gt;
  
      &lt;LinearLayout
          style="@style/innerContainer"
          android:layout_margin="6dp"
          android:background="@drawable/container"&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>fragment layout  </p>
  
  <pre><code>&lt;LinearLayout 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"
      android:orientation="vertical"
      tools:context="com.example.thevisionspark.jobsite.AppliedUsers"&gt;
  
      &lt;LinearLayout
          style="@style/innerContainer"&gt;
  
          &lt;TextView
              style="@style/headings"
              android:text="Applied Users"
              android:layout_gravity="center_horizontal"/&gt;
  
  
      &lt;/LinearLayout&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>fragment loading code</p>
  
  <pre><code>FragmentTransaction fm = getSupportFragmentManager().beginTransaction();
                      AppliedUsers frag = new AppliedUsers();
                      frag.setArguments(bundle);
  
                      if(getSupportFragmentManager().getFragments() == null)
                          fm.add(R.id.container, frag).commit();
  
                      else fm.replace(R.id.container, frag).commit();
  </code></pre>