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
1
vote
5 answers

implementing a button inside a popup window for android

bellow you can see a script that displays the data from a SQLite database in a popup window. My question is that how can I implement a button inside that window to accomplish some tasks here is the code: package…
dadadodo
  • 349
  • 2
  • 15
1
vote
3 answers

How to dismiss an android pop up window using an okay button

I'm making an app for a school project and I'm stuck on one area. I want to use an okay button to dismiss the pop up window. If you have any suggestions or if there is a better way to implement popups please share them. package…
Ashraf Ali
  • 35
  • 7
1
vote
1 answer

Problems showing popupWindow

I am developing a chat application for android. I have get stucked showing the contacts in a popupWindow. What I pretend to do is to show them in the right side of the screen, like google+ shows the menus. The problem is I have searched for many…
user5836035
1
vote
1 answer

android-popupWindow() orientation change : `android.view.WindowManager$BadTokenException`

EXCEPTION: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? I have a popupWindow() which I am showing upon a button click. I am using my own method…
1
vote
0 answers

how can I dismiss a PopupWindow and keep the SOFTKEYBOARD onscreen

I have a DialogFragment which shows a PopupWindow once you press certain key (@), I'd like the back button to dismiss the popupwindow while staying focused on the edittext, so user can keep on writing text, instead of taking the keyboard…
1
vote
1 answer

How to prevent the scroll event from being intercepted by a PopupWindow

When I click the space outside the PopupWindow, the window is dismissed. However, if I want to scroll a ListView outside the window, the scroll event is first recognized as a click event, and get intercepted by the window, so the window get…
ProtossShuttle
  • 1,623
  • 20
  • 40
1
vote
0 answers

select the checked item from listview on popup window and show these selected items on that activity screen in android

I am a new to android BaseAdapter and I am facing a null pointer exception when get the checked item from popup window. what I want to do given below- I want to select the checked item from checked listview on popup window and show these selected…
1
vote
1 answer

Android LisPopUpWindow Stays On Right Side of view without Margin

I am trying to implement a ListPopUpWindow something like the twitter like Menu Popup. But then it's stuck to the right side of the screen. Any help would be appreciated thanks. My code's below PopUpWindow Method private void onListPopUp(View…
Tonespy
  • 3,257
  • 7
  • 26
  • 52
1
vote
2 answers

Create Popup with Runnable Thread Android

i m trying to create popup with runnable but i m not able to. i always get "NULLPOINTEREXPEXTIONS" i m almost done with my android app, the only thing left is show popup after some time, i used runnable to show popup here is my code, ERROR generate…
Ashu Kumar
  • 832
  • 19
  • 38
1
vote
1 answer

Display a popup at the left edge of a view

I am using a custom popup in a list view, this popup needs to be drawn half way through the height of triggerview and on the left side of the triggerview. I am able to achieve the first part, second seems elusive, here is my code: public class…
User3
  • 2,465
  • 8
  • 41
  • 84
1
vote
0 answers

Android PopUp window behing view

Is there a way to "inflate" the PopupWindow inside View ? I mean that if I have Button and I want the popup window(for example the popupwindow is above the Button) to be in the same layout as Button i.e. if the Button is in ScrollView, when the…
DPM
  • 1,540
  • 2
  • 18
  • 40
1
vote
1 answer

Unable to click edittext inside inside linear layout, inside pop up window

I have an edit text that is inside a linear layout. And the linear layout is inside a pop window. When I run the app, I am unable to click and enter input for the edit text. Code for the pop up window it is inside the onCreateView of my…
Nikhil
  • 155
  • 2
  • 12
1
vote
1 answer

Update a popupwindow's contentview dynamically without dismissing and recreating it

in my project,there is four buttons on the top, and when I click one,I just show a popubwindow, but how can I update popubwindow's contentview. like listview's notifidatasetchanged. I just want update popubwindow's contentview without its…
1
vote
0 answers

pop up a swipe view when a button click in android

I have a swipe view with tabs.It runs well.But i want to pop up this menu when a button click.i have lots of images.i use Drawer layout but it run out of memory so i use the swipe menu.but i want to close and open this menu.is there any library?Any…
rowwwss
  • 49
  • 1
  • 7
1
vote
0 answers

Tricky layout with ViewPager and PopupWindow

I'm trying to implement the following miniplayer for a music player: ui gif I currently have a vertical view pager that is slightly taller than one card/song. It's populated with miniplayer fragments via a FragmentStatePagerAdapter. I now have most…