Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Aligning a view to an ImageView in different resolutions
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Adam Lichwierowicz  
View profile  
 More options Sep 27 2012, 12:02 pm
From: Adam Lichwierowicz <adam.lichwierow...@gmail.com>
Date: Thu, 27 Sep 2012 17:59:52 +0200
Local: Thurs, Sep 27 2012 11:59 am
Subject: Re: [android-developers] Aligning a view to an ImageView in different resolutions
Means that I have integrated my image with the activity background
image. So I no longer have an imageview in the activity but only the
background and I place my progress bar according to the screen
dimensions not imageview dimensions.

"i think it should just work provided you get the matrix after the
layout management has been done on your imageview"

Than please advice when exactly (or where in the code to be precise)
is this moment - since in all of the listeners I have mentioned, the
Matrix did not gave correct points - the points where the same as if
the imageview was not rescaled at all. So I.e. Input point 110,50
(correct on original unscaled bitmap)- output points 110,50 (incorrect
on the screen)

2012/9/27 skink <psk...@gmail.com>:

> Serdel wrote:
>> "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.

> what do you mean by "flattening your image"?

> i think it should just work provided you get the matrix after the
> layout management has been done on your imageview

> pskink

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.