Shabbir Panjesha
Shabbir Panjesha

Reputation: 1939

Android Pop up window

I looked online and was not able to find a working example of the PopupWindow class. The code examples I found online either compile but do not work, or are using methods which have since been removed (such as Activity.getViewInflate()).

Is there a simple working example that displays a PopupWindow?

Upvotes: 2

Views: 2681

Answers (2)

Alex Cooper
Alex Cooper

Reputation: 54

May be AlertDialog can solve your problem you can full screen dialog window it just look like a window it is an alternative

Upvotes: 0

Yevgeny Simkin
Yevgeny Simkin

Reputation: 28349

Any Activity can be a "popup window" it just has to show up on top of the previous activity and not take up all the screen real estate! :)

Here's an example of how this works...

How do I create a transparent Activity on Android?

Or are you just looking for an Alert that gets dismissed by being touched anywhere (rather than with an "OK" button?

Upvotes: 2

Related Questions