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

Android studio PopupWindow works in emulator but not on device

PopupWindow shows and works perfectly in AVD but not on a real device. This is the function that is supposed to create the popup: http://pastebin.com/jabHVp2c What I tried: I made sure that onClick is being called, and it is. I made sure no other…
Max Izrin
  • 938
  • 1
  • 11
  • 17
0
votes
2 answers

android.view.WindowManager$BadTokenException while showing PopOver

I have added following code to display a Popover on my spinner view. The code uses custom PopOver which extends PopupWindow : @Override public void onStart() { super.onStart(); new Handler().postDelayed(new Runnable() { …
0
votes
2 answers

Memory Leak due to PopupWindow

I have a FragmentA. When I click on a button in FragmentA I go to FragmentB. In FragmentB I have a PopupWindow. The PopupWindow have a ViewPager with two pages. I took help from this code - Emojicon I have 2 separate classes, View1 and View2, for…
0
votes
2 answers

app crashes when spinner is pressed inside popupwindow which is located in fragment

i have a fragment with a button. The button is pressed and if the user credentials entered match a valid user(the input fields ara being checked requests to rest api) a popupwindow is displayed with a spinner, a textview and an editext. in volley…
tsiro
  • 2,323
  • 3
  • 24
  • 46
0
votes
1 answer

Styling popup menu item's

I am trying to style the items of my popup so they look like a list of buttons below eachother. The only problem is that I can't get to change anything of the popup items. I have tried to set a global popupMenuStyle in my app style but that didn't…
0
votes
1 answer

java.lang.IllegalArgumentException: view must not be null; when implementing UIL displayImage function in Android

I'm loading an image using Universal Image Loader library, and I got this Exception. I could not understand the cause of this exception. Can anyone Help? Thanks in advance. E/j v .lang.Illegal ArgumentException: view must not be null E/j v .l…
0
votes
0 answers

Popup Window with FragmentActivity

I have my popup windows with "extends activity". I searched and I knew that I cannot extent twice. So, How can I put the content in a pop up with the FragmentActivity? Edit: this is the main activity public class Kulintang extends…
kcuf up
  • 13
  • 1
  • 4
0
votes
1 answer

How to make effective popup view for emojicon?

I have some example Emoji Keyboard. How to create popup view look like emojiconView in softkeyboard I have another project. I create a popup same like in Dot dash Keyboard How to implements a emoji proper view in softkeyboard. See : But my view…
Sonu Kumar
  • 969
  • 1
  • 11
  • 36
0
votes
1 answer

Why didn't my animation work as expected?

I want to animate appearing of a PopupWindow. This is my show.xml:
user5266889
0
votes
2 answers

How to fix Android application leaked resources

I have following code in my Activity:- public void showPopup(View view) { View popupView = getLayoutInflater().inflate(R.layout.popup_layout, null); PopupWindow popupWindow = new PopupWindow(popupView, …
masiboo
  • 4,537
  • 9
  • 75
  • 136
0
votes
2 answers

How dismiss PopupWindow whem click outside?

I use PopupWindow in my project. And I can not dismiss it when touch display. I tried: @Override public void onResume() { super.onResume(); new Handler().postDelayed(new Runnable() { @Override public void…
ip696
  • 6,574
  • 12
  • 65
  • 128
0
votes
1 answer

How to Handle Pending Intent on Notification Progress bar?

In my app I am uploading an image to a server,a notification progress bar is there to show upload progress.when a user click on the notification ,a popup window will show to cancel or continue upload.All these are working fine.When I click back…
Jack
  • 1,825
  • 3
  • 26
  • 43
0
votes
1 answer

How to show a pop up in Android and still be able to click on fragment

I'm trying to create a pop up that will notify the user if they got the correct answer, the user can then click the continue button to the next question. The pic below from the Duolingo app shows exactly what I want. What class can be used to do…
Tintinabulator Zea
  • 2,617
  • 5
  • 18
  • 32
0
votes
1 answer

Getting a run time error in popup menu "InvocationTargetException"

In my application, I want to display the popup menu, I was tried but getting an run time error and am unable to fix this error.In my application I don't want to use an ActionBar, Am attaching the code below have a look on it HomeScreen.class public…
0
votes
0 answers

BadTockenException in Speech-to-Text popup inside PopupWindow

App crashes when using Built-In speech to text dialog: Here is how i'm opening the PopupWindow: popupwindow = new PopupWindow(MyActivity.this); . . . popupwindow.showAtLocation(view, Gravity.CENTER, 0, 0); and here is the Logcat: 05-04…
Waqar Khan
  • 468
  • 4
  • 18