A window that appears ('pops up', hence the name) when you select an option with a mouse or press a designated function key. Usually, the pop-up window contains a menu of commands and stays on the screen only until you select one of the commands. It then disappears.
Questions tagged [popupwindow]
1754 questions
24
votes
9 answers
How to handle Pop-up in Selenium WebDriver using Java
I want to handle sign-in part in rediff.com, but the below code doesn't work for that:
driver.get("http://www.rediff.com/");
WebElement sign = driver.findElement(By.xpath("//html/body/div[3]/div[3]/span[4]/span/a"));
sign.click();
String…

Niyati
- 493
- 3
- 5
- 20
23
votes
1 answer
How to make Twitter app style Quick Actions on Android
Is there any code that gives an example about how to implement the Quick Actions and Popdown menu that is displayed in the Twitter for Android app?

Rich Schuler
- 41,814
- 6
- 72
- 59
23
votes
9 answers
Android PopupWindow and WRAP_CONTENT don't work together
I open a popu window like this:
mInfoPopup = new PopupWindow(layout, 400, 600, true);
mInfoPopup.setWindowLayoutMode(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
The window then gets the exact size specified (400x600)…

Boris
- 8,551
- 25
- 67
- 120
20
votes
6 answers
Selenium webdriver selecting new window c#
Trying to write some test cases using selenium webdriver in c# and have a scenario which i'm unsure of how to resolve
user scenario is searching a table for a patient, select a patient then a new window opens and then assert various items on the…

jim7
- 213
- 1
- 2
- 6
19
votes
1 answer
Properly creating a fragment in a PopupWindow
I’m new to Android development and am confused about how to accomplish what I’m trying to do. I’ve done some reading and learning about fragments so I can share layout and code between various screen size designs. I’ve got a couple of fragments…

Mark Rausch
- 512
- 2
- 5
- 9
19
votes
5 answers
EditText in PopupWindow not showing keyboard even if setFocusable(true)
I can't seem to get this work. I already set popWindow focusable as to what I read on other forums but still no luck.
xml

yhunz_19
- 1,206
- 2
- 12
- 17
19
votes
2 answers
Get The Measures of Popup Window
I already set up the pop up window, but i want to center it below the button (View v), that needs to be clicked to open it:
public void showPopup(Context c, View v){
int[] location = new int[2];
v.getLocationOnScreen(location);
…

jns
- 1,250
- 1
- 13
- 29
18
votes
3 answers
Using JQuery to Access a New Window's DOM
I am creating a new window that will contain text that user will print.
I would like to do something similar to this:
var new_win = window.open();
$(new_win.document).html("Test");

jdw
- 1,533
- 3
- 17
- 26
16
votes
4 answers
PopupWindow above Virtual keyboard
I have a PopupWindow that is shown when a user is typing in an EditText. This popup offers him some suggestions.
My problem is that when the Popup is shown, a part of it is displayed over the Keyboard on the screen, preventing the user to continue…

pane619
- 243
- 3
- 11
16
votes
6 answers
PopupWindow - not working on a few devices
I use following code to show a small popup:
public static PopupWindow showImportMenu(Activity activity, View anchor, PopupWindowClickListener onClickListener)
{
LayoutInflater inflater = LayoutInflater.from(activity);
PopupImportBinding…

prom85
- 16,896
- 17
- 122
- 242
16
votes
5 answers
EditText On A Popup Window
I am developing on Android 2.2 using Java.
I put an editText on a PopupWindow and it's not working.
It acts like a disabled edit text, clicking on the edit text won't show the soft keyboard.
How can I add an edit text on a popupWindow?

Laura
- 2,653
- 7
- 37
- 59
16
votes
2 answers
Android popup window not filling screen size?
I am trying to make a simple pop up window. But every time I make one, it ends up being super small...and not the length I want it to be. This is how the pop up looks:
Here is my layout for the pop up:

TheQ
- 1,949
- 10
- 38
- 63
16
votes
4 answers
android : Open pop-up window in my webview
I have webview in my application and I want it to open pop up windows when clicking on a link inside webview. I have added following code but it didn't work:-
WebSettings webSettings = webViewPage.getSettings(); …

Vikalp
- 2,051
- 4
- 18
- 24
16
votes
2 answers
Android PopupWindow showAsDropDown() not working properly
I am using PopupWindow with showAsDropDown(anchor). When the anchor is at the top of the screen it works fine, but when at the bottom of the screen nothing shows up. According to the documentation for PopupWindow.showAsDropDown() this should…

meeeee
- 2,929
- 3
- 22
- 25
16
votes
2 answers
What is a cheek press event?
In the Android docs for a PopupWindow, the method setIgnoreCheekPress() is mentioned. It says that this method "Sets the flag on popup to ignore cheek press event; by default this flag is set to false which means the pop wont ignore cheek press…

Lewis
- 1,310
- 1
- 15
- 28