On 13 March 2012 13:57, decastro <[email protected]> wrote:

> I have a custom popup window with a custom image background in which I
> need to place a custom button with its own background image. I want the
> poput window to be scaled so as to take up a fixed fraction of the screen
> width. My question now is how do I make sure that the buttons line up with
> the appropriate parts of the background image of the popup window. I have
> been experimenting with all sorts of widths and heights and I can not make
> it look consistent on all my test devices. Can anyone give me some pointers?
>

get position and size of the object you want "bind" to (with
parentView.getMeasuredWidth(); etc) and then use it to position your
PopupWindow around.

Regards,
Marcin Orlowski

*Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy...
*Date In Tray* <http://bit.ly/dateintraypro> - current date at glance...
WebnetMobile on *Facebook <http://webnetmobile.com/fb/>*,
*Google+*<http://bit.ly/webnetmobile-gp>and
*Twitter <http://webnetmobile.com/twitter/>*



> --
> 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

-- 
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