title: getmeasuredheight() and getmeasuredwidth() returns 0 after View.measure()
body: <p>After measuring a <code>View</code> with a <strong>constant dimensions</strong> with <code>view.measure()</code>, the <code>getMeasuredHeight()</code> and <code>getMeasureWidth()</code> is returning 0.</p>
  <p><strong>layout_view.xml</strong>, layout which is inflated to create the view</p>
  <pre><code>&lt;FrameLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot; 
      android:layout_width=&quot;100dp&quot;
      android:layout_height=&quot;100dp&quot;&gt;
  &lt;/FrameLayout&gt;
  </code></pre>
  <p>function which measures the dimensions</p>
  <pre><code>public void measureView(Context context){
      LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      View view = inflater.inflate(R.layout.layout_view,null,false);
  
      view.measure( View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);
  
      Log.d(TAG,&quot;Error width : &quot; + view.getMeasuredWidth());
      Log.d(TAG,&quot;Error height : &quot; + view.getMeasuredHeight());
  
  }
  </code></pre>