(Android) How to overlay an image (ImageView) anchoring the to the eyes?
<p>Good afternoon!
Tell me how to overlay an image (ImageView), anchoring the to the eyes?
I want to track using Google Vision API.
Maybe there is an example of how to put a hat on head?</p>

<p><strong>Added. (12 Jule 2016)</strong></p>

<p>Use the following code:</p>

<pre><code>imageView.setX(mPosition.x);
imageView.setY(mPosition.y);
postInvalidate();
</code></pre>

<p>not anchoring (blue square) strictly to the eye, you can see it in the screenshots with different distance from the photos:</p>

<p><a href="https://i.stack.imgur.com/kBNLi.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kBNLi.jpg" alt="enter image description here"></a></p>

<p>Please tell me why this happens?</p>