title: measureSpec returns wrong value
body: <p>I am trying to get measured height of layout by using this code:</p>
  
  <pre><code>int widthMeasureSpec = View.MeasureSpec.makeMeasureSpec(toExpand.getWidth(), View.MeasureSpec.EXACTLY);
          int heightMeasureSpec = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);
          layoutHeight.measure(widthMeasureSpec, heightMeasureSpec);
          int height = layoutHeight.getMeasuredHeight();
  </code></pre>
  
  <p>it returns good values if I call it after layout has been created but I am also calling it on aplication startup when fragment gets attached and then it returns much higher values than expected.</p>
  
  <p>Any ideas? Thanks in forward</p>