title: getMeasuredWidth returns totally wrong value
body: <p>I have to measure a <code>View</code> for spacing others. I use this code for that:</p>
  
  <pre><code>ViewGroup view = ...;
  view.setPadding(10, 0, 10, 0);
  int wrapContent = RelativeLayout.LayoutParams.WRAP_CONTENT;
  int specWidth = MeasureSpec.makeMeasureSpec(wrapContent, MeasureSpec.AT_MOST);
  view.measure(specWidth, specWidth);
  int questionWidth = view.getMeasuredWidth();
  </code></pre>
  
  <p>This works as expected on an Android 4.3 emulator.</p>
  
  <p>However the returned measured width on a Samsung Galaxy XCover 2 (S7710) Android 4.1.2 phone, is <strong>16777214</strong>...
  I tried everything, masking with <code>View.MEASURED_SIZE_MASK</code>, but nothing helped.</p>
  
  <p>Could you provide some help with this? Thanks in advance!</p>