views:

38

answers:

1

I have PopupWindow, which I'd like to place in the center of the screen. However, I only have access to the KeyboardView (since I'm implementing an IME) at the bottom of the screen and whenever I center my PopupWindow by using the KeyboardView and Gravity.CENTER it is of course only centered above the keyboard, but not in the whole screen.

Is there a way to get the whole screen as an anchor view?

+1  A: 

You cannot do this with a popup window. You should create your own window using a WindowManager instance.

Romain Guy
Okay, will look into that. You know if there is some example code around?
znq