title: Dynamically resize relative layout
body: <p>I'm trying to create something that looks like this.</p>
  
  <p>I can sort of get the header working, and the word cloud look-alike stuff on the right.
  I'm calling it from a Fragment.</p>
  
  <p>But I'm struggling to get the two column thing working.</p>
  
  <p>I tried to get the width of the parent like this:</p>
  
  <pre><code>parentLayout = (RelativeLayout) view.findViewById(R.id.ParentLayout);
  parentLayout.getMeasuredWidth() 
  </code></pre>
  
  <p>this returns 0, while the parentLayout has layout_width="match_parent"</p>
  
  <p>I can't seem to find tutorials/example on this type of "view", or maybe the keyword I'm using for the search is wrong. </p>
  
  <p>Any input is appreciated!!
  Thanks in advance!!</p>
  
  <p>p.s. I tried to use onMeasure() as well, but got error "must override or implement a supertype method"</p>
  
  <p><img src="https://i.stack.imgur.com/9vwvr.png" alt="Page"></p>