title: Android: RelativeLayout inside FrameLayout, width height bug
body: <p>What I have:</p>
  
  <p><code>activity_comics.xml</code> - layout container for two fragments: list of comicses (view_comicses.xml) and detail comics view</p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:gravity="center_vertical"
      android:id="@+id/comics_fragment_container"&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p><code>view_comicses.xml</code> - fragment with staggered listview</p>
  
  <pre><code>&lt;com.agimind.widget.huewu.pla.lib.MultiColumnListView
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:pla="http://schemas.android.com/apk/res-auto"
      android:id="@+id/multicollist"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      pla:plaColumnNumber="2"
      pla:plaLandscapeColumnNumber="3"&gt;
  &lt;/com.agimind.widget.huewu.pla.lib.MultiColumnListView&gt;
  </code></pre>
  
  <p><code>view_comics_detail.xml</code> - fragment for detail view of comics</p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:background="@android:color/black"&gt;
  
      &lt;ImageView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:id="@+id/comics_image"
          android:layout_centerInParent="true" /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>After <code>view_comicses.xml</code> and <code>view_comics_detail.xml</code> fragments added to <code>activity_comics.xml</code>, resulting layout should be like this:</p>
  
  <pre><code>&lt;FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:gravity="center_vertical"
  android:id="@+id/comics_fragment_container"&gt;
  
      &lt;com.agimind.widget.huewu.pla.lib.MultiColumnListView
          xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:pla="http://schemas.android.com/apk/res-auto"
          android:id="@+id/multicollist"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          pla:plaColumnNumber="2"
          pla:plaLandscapeColumnNumber="3"&gt;
      &lt;/com.agimind.widget.huewu.pla.lib.MultiColumnListView&gt;
  
      &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@android:color/black"&gt;
  
          &lt;ImageView
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:id="@+id/comics_image"
              android:layout_centerInParent="true" /&gt;
  
      &lt;/RelativeLayout&gt;
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>But for some reasons resulting layout look like this</p>
  
  <p><img src="https://i.stack.imgur.com/iW8KS.png" alt="resulting layout"></p>
  
  <p>width and height of <code>RelativeLayout</code> are equals match_parent, but on render as if equal wrap_content. Why is this happening? I tried difference params for <code>FrameLayout</code> and <code>RelativeLayout</code>, but not work, any help would be greatly appreciated!</p>