Questions tagged [android-popupwindow]

The popupWindow is an AndroidView Container displayed on top of the current activity to show any view.

JavaDoc: http://developer.android.com/reference/android/widget/PopupWindow.html

362 questions
0
votes
1 answer

Open PopupWindow and drawing from RightTop to LeftBottom, instead of LeftTop to RightBottom

I know I can use: myPopup.showAtLocation(layout, Gravity.NO_GRAVITY, x, y); // OR myPopup.showAtLocation(layout, Gravity.TOP|Gravity.LEFT, x, y); To open a PopupWindow that's drawn from [x, y] as the Top-Left of the PopupWindow, drawn towards to…
0
votes
1 answer

How to move the popup window when the virtual kayboard is open in android?

I have EditText and Button in popup-window.am show popup-window in bottom of the screen. When i try to enter details in EditText, the popup-window hide behind the soft-keyboard,not able to see the EditText and not able to solve the issue.Can any one…
Yugesh
  • 4,030
  • 9
  • 57
  • 97
0
votes
0 answers

"System services not available to Activities before onCreate()" with popup window

I'm having a FragmentActivity that consists of a lot of elements that causes a pop-up window shown on every item click regarding to that item, I'm creating the popup the regular way: LayoutInflater inflater; View layout; inflater = (LayoutInflater)…
0
votes
2 answers

Dynamically change the positionof PopupWindow in android

I want to change position of PopupWindow dynamically. Have used the following method: public void showAtLocation (View parent, int gravity, int x, int y) But sometime PopupWindow shows out of screen. So which relative parameter should I use for…
JithinMechery
  • 53
  • 2
  • 9
0
votes
1 answer

EditText in PopupWindow from onItemClick of ListView is not focused on

I have a ListView, each row has a TextView, upon clicking on the row, I want a PopupWindow with an EditText to pop under the row. The text entered by the user should be then displayed in the TextView of the row. When I click on a row the TextView…
0
votes
2 answers

Android Popup Window X and Y positioning

I have a popup window in android Any body can say me the X and Y positon mean in an android screen.Is it refer to the screen window or refer to the button poping the window. This is My code int[] location = new int[2]; Object…
0
votes
1 answer

How to show PopUpWindow after it has been inflated

I have a PopUpWindow which needs to load as soon as the Activity starts, which uses the DisplayMetrics of the screen, as well as other things. However, I am getting the error "Unable to add window -- token null is not valid; is your activity…
user3658385
  • 101
  • 1
  • 1
  • 6
0
votes
0 answers

How to show PopUpWindow after resources have finished loading

I have a PopUpWindow which needs to load as soon as the Activity starts, which uses the DisplayMetrics of the screen, as well as other things. However, I am getting the error "Unable to add window -- token null is not valid; is your activity…
0
votes
1 answer

PopupWindow not getting any TouchEvents

I have a MapFragment in which, upon clicking a marker I'm showing a PopupWindow. I can't seem to get it to receive TouchEvents though. Here's what I've got atm: mPopupWindow.getContentView().setOnClickListener(new OnClickListener() { …
mewa
  • 1,532
  • 1
  • 12
  • 20
0
votes
2 answers

Add Views programmatically to LinearLayout after it got inflated

I want to add some LinearLayouts to an existing Linearlayout. The xml of the Activity looks as followed:
0
votes
1 answer

How to create a PopupWindow with images?

I'm trying to create a popup window similar to programmatically. Unfortunately I couldn't figure out any helpful resource so far for creating a similar popup.
Jan B
  • 518
  • 1
  • 3
  • 18
0
votes
2 answers

Why popup view collapsing other views?

I'm using the popup window to show the calendar view ,while showing the popup window it collapses the whole view ,i.e it is disturbing the view next to it ,it doesn't popup like Spinner(spinner adapter view). what may be problem , here my code…
Strawberry
  • 667
  • 2
  • 10
  • 24
0
votes
1 answer

UI Activity in the POP window in android

I would like to use the popup window for my UI activity. Actually, I have a button in my main activity page which on clicked should open like a dialog window. In that dialogue window, I want to have two other buttons in it which on clicked should…
0
votes
2 answers

Disable Screen rotation in my activity while dialog is showing

I have a dialog fragment that shows while my application is doing a task. I cancel the task that is being executed on the activities onDestroy() method is called. If the user rotates while the popup is showing, android destroys the activity and then…
0
votes
1 answer

Android PopUpWindow with two buttons, textView and TextEdit

I have my app in which I touch a button and displays a popup window. Inside it is the following layout: popupip.xml