Any solution yet ? On Thursday, June 10, 2010 3:02:00 PM UTC+5:30, Axel Garcia wrote: > > I have exactly the same problem... did you finally found some > solution? > Thx > > On May 27, 8:17 pm, Nathan <[email protected]> wrote: > > I've experimented with a PopupWindow, but don't have a very good way > > of controlling its size. It only responds to absolute pixels. > > > > I've tried doing this: > > > > > popup.setWindowLayoutMode(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTE > NT); > > > > But it doesn't work. If I don't use setWidth() and setHeight(), it > > doesn't show up at all, presumably because width and height are zero. > > If I do set Width and Height, it will use those exact numbers. It > > won't size to the size of the contentView. > > > > Therefore, I am stuck with setting the width and height as absolute > > pixels, not even adjusted to resolution. > > > > This is using: > > popup.showAtLocation(view,Gravity.TOP | Gravity.LEFT, > cornerx, > > cornery); > > > > I see different, but also incorrect behavior when using > > popup.showAsDropDown(); > > It actually did seem to scale properly in the vertical direction, but > > took up the entire screen in the horizontal direction. > > > > I can't exactly base the size on the contentView's size because this > > the contentView size is zero until it has been shown at least once. > > > > Can anyone who has used PopupWindows give me some hints on it's > > sizing? Google Maps seems to use them fine on my G1, but I don't know > > how they are controlling the size. > > > > Nathan
-- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

