Android Rect width and height differs from original dimensions
<p>I was tracing a problem of why Rect.intersects function did not work in my Android application and found out that one of my rectangles have an incorrect width and height.</p>

<pre><code>ImageView tt = (ImageView)findViewById(R.id.tt);
Rect newInRect = new Rect(421, tt.getTop(), tt.getRight(), tt.getBottom());
Log.d("Size comparison", String.format("getRight %d, getLeft: %d | Width: %d, Height: %d", tt.getRight(), tt.getLeft(), newInRect.width(), newInRect.height()));
</code></pre>

<p>The output is: "Size comparison: getRight 296, getLeft: 144 | Width: -124, Height: 152"</p>

<p>Don't getRight() and getBottom() functions stand for width and height?
Why do they return different values? Which one is correct?
My intention is to make a Rect exactly the same size as an ImageView called tt but with a different X coordinate. How can I do that?</p>