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
0 answers

Putting chart on android popup

I am using AChartEngine to make charts which seems to be working quite well so far. The only thing to make this perfect would be to be able to put this chart on a popup. Unfortunately I have no idea how to do this. Whenever I try to include the…
theJuls
  • 6,788
  • 14
  • 73
  • 160
0
votes
1 answer

Activity com.ui.MapViewer has leaked window android.widget.PopupWindow that was originally added here

I'm doing a android map where i have a map with some points using mapsforge and every point on the map is saved in a spatialite database. After that, every click on the map opens a custom PopUp window, that receive the current activity as context,…
0
votes
2 answers

Trouble with popup window onclick

I am working on a popup window, i am having two imagebuttons.at start all is looking good but when i put onclick event on my both image buttons than my app is crashed. i Don't understand why onclick is givving error. following is my code: protected…
0
votes
1 answer

I need to dismiss my PopupWindow, but the dismiss function isn't working

The title describes it rather well; A PopupWindow opens, and is used as a menu for my game. However, when I try to use a button to close the menu, Eclipse says "The local variable pw may not have been initialized" :\ My Java code: package…
BipBapApps
  • 73
  • 1
  • 10
0
votes
2 answers

My PopUpWindow doesn't open when I click on the button

Basically, the button I click is for a store, and I'd like it to cause a PopUpWindow to appear from which you can buy upgrades (much like the Cookie Clicker menu). However, when I click the button, the app crashes. Someone's similar post said that…
BipBapApps
  • 73
  • 1
  • 10
0
votes
1 answer

How to close PopupWindow in OnItemClickListener of GridView, if the GridView is in the PopupWindow

I have a GridView A in a PopupWindow A. And I just want to close the PopupWindow A, if I click one item in the GridView A. Now It's just like when I open the result Fragment, the PopupWindow A keep stay on the screen. And the PopupWindow A is also…
JerryZhou
  • 4,566
  • 3
  • 37
  • 60
0
votes
1 answer

Show popup window from another class Android

I have an activity and a class that implements a popup window. Using this tutorial I implemented the popup. I call the methods init() and popupInit() from the activity and everything else is in the class. My problem is that the popup does not…
user3132352
  • 403
  • 1
  • 9
  • 24
0
votes
1 answer

Popup window in non activity class Android

I want to open a popup window in my activity but I want to implement the popup from another class. I'm using this tutorial but my app crashes. I call the methods init() and popupInit() from my activity and everything else is here: package…
user3132352
  • 403
  • 1
  • 9
  • 24
0
votes
2 answers

Android support library strange theme behavior

since last night I'm expecting this weird behavior of my application theme: Popup menus appear with black background and AlertDialogs with white text color. By the way, heres my styles.xml:
tobs
  • 699
  • 2
  • 8
  • 24
0
votes
1 answer

PopupWindow crashes on instantiation

I'm having a really weird problem here. I have a PopupWindow working fine on my Moto G, Android 4.4. But now I'm testing on my Galaxy Y Android 2.3.6 and it seems the Popup is crashing on its instantiation. My code: // Function called when user hit…
João Menighin
  • 3,083
  • 6
  • 38
  • 80
0
votes
1 answer

Displaying Popup window on canvas in view class

I have a view class that draws different colored circles onto the canvas. I want to display a popup window near the circle when the circle is clicked to display the color of the circle. Right now I am facing problem trying to create the popup…
user3306996
  • 421
  • 2
  • 4
  • 15
0
votes
0 answers

PopupWindow does not pop up

I am trying to set PopupWindow in my app and it does not pop up. Here is my code: popUp.showAtLocation(layout, Gravity.BOTTOM, 10, 10); popUp.update(50, 50, 300, 200); layout.setOrientation(LinearLayout.VERTICAL); …
0
votes
1 answer

LinearLayout with Fragment inside PopupWindow

I am using a PopupWindow to overlay a ViewPager with 5 different Fragments over users IME if he clicks on a specific button. As far as i know at the moment, it is not possible to use a Frgament as content of a PopupWindow. So my question is: Is it…
0
votes
3 answers

Android - Pop up a View on top of another View

Suppose I have a Button like what is in the following: I want once this button is clicked a ImageView(popup message) appears in the top of this button, something like this: But I do not know how put a View as an overlay on top of another View,…
frogatto
  • 28,539
  • 11
  • 83
  • 129
0
votes
2 answers

How to disable the cancel when a popupwindow shows

I created a popupwindow to show a menu. I found that if I press the cancel button on keyboard, the popupwindow will dismiss, and setFocusable() only disable the buttons like menu, but cancel button still works. If there exists a method to make…
JIANJIAN
  • 3
  • 4