"i don't think so since this matrix is used internally for drawing the 
image - see ImageView.java "

Well I tried the matrix in onCreated, in onFocusChanged Listener and in 
Image view onPreDraw and onGlobalLayout listeners - the point where 
calculated exactly as if the bitmap was not resized and the progress bar 
was misplaced.

I figured out a work around this - I just flattened my imageview to the 
layout background and I position my object with the screen Metrics (minus 
status bar size for height) and it works. 
Unfortunately this is not the complete solution as there can be situations 
where you cannot flatten the image to the background and need it still as 
an separate ImageView.

I don't under why such basic and very necessary task as gaining the resized 
image dimensions, must be such a hard thing to do. Seems pointless to make 
it that difficult.  

W dniu czwartek, 27 września 2012 12:52:25 UTC+2 użytkownik skink napisał:
>
>
>
> Serdel wrote: 
> > skink: your code works but the matrix seems calculate the points before 
> > resizing the image. 
> > 
>
> i don't think so since this matrix is used internally for drawing the 
> image - see ImageView.java 
>
> pskink 
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to