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
2
votes
1 answer

How to show whatsapp like popup notification when app is in background?

I have to set reminder in my app. So, Once the reminder time is reached , app has to show one popup window (Even if the app is not running) , just like how WhatsApp shows messages in popup when it is not running On tapping the button I have to…
dev
  • 1,085
  • 4
  • 19
  • 26
2
votes
2 answers

Android PopupWindow Custom Java Animation

I want to show/hide a popupwindow using a expand/collapse animation from this answer. I was able to use the animation by applying it to the popup view which is a view inside popupwindow. The problem I'm facing now is that when user touches outside…
Sina Rezaei
  • 529
  • 3
  • 24
2
votes
2 answers

Dimmed Background of PopupWindow excludes Toolbars / Action Bars

I use the following codes to create a PopupWindow with dim background by clicking a menu item in Toolbar: @Override public boolean onOptionsItemSelected(MenuItem item) { switch(item.getItemId()) { case R.id.btn_1: Log.i(TAG,…
Raptor
  • 53,206
  • 45
  • 230
  • 366
2
votes
1 answer

PopupWindow covers Navigation bar in Android 5.1

I am showing the popupWindow in my app showing it using popupWinow.showAsDropDown(anchor) It works fine on pre lollipop devices but on android 5 and 5.1 it covers the navigation bar. Tried using setAttachedInDecor but no improvement.
Manish
  • 1,215
  • 10
  • 29
2
votes
2 answers

android - How to design a pop-up window having rounded corners and shadows

Before marking this as duplicate, I'd like to say that I have gone through SO posts like this, this and this. But I haven't found any solution suitable to me. I am trying to create a pop-up window using PopupWindow(). I want to design this window…
Sajib Acharya
  • 1,666
  • 5
  • 29
  • 54
2
votes
1 answer

setBuiltInZoomControls with WebView inside of PopupWindow

I have a PopupWindow that displays a WebView on a button press. If setBuiltInZoomControls is set to false, the WebView displays the page as expected. However, if setBuiltInZoomControls is set to true, any interaction with the WebView (Scrolling,…
2
votes
2 answers

scrollview not working in popupwindow

I have a popupwindow and I have added scrollview as its parent layout. But its not working. If I change the scrollview to a diff layout, its working.. Basically I have multiple layouts ( mix of relative and linear ) and I want it to be scroll-able.…
Govind
  • 2,482
  • 1
  • 28
  • 40
2
votes
1 answer

How to find popup window by ID/tag/...?

I created an activity which shows popup window. After the activity is stopped the following message is printed to log: 10-22 13:36:05.539: E/WindowManager(14865): android.view.WindowLeaked: Activity qnd.papaya.counter.gui.payment.PaymentActivity has…
Michal Vician
  • 2,486
  • 2
  • 28
  • 47
2
votes
0 answers

Android PopupWindow not changing position after calling update()

My Android app has a game map with markers on it. When the user taps a marker, I'm displaying a PopupWindow aligned with the map marker (similar to Google Maps). The problem I'm having is if a marker is close to the top of the screen, the…
mpalmer
  • 356
  • 1
  • 8
2
votes
1 answer

cannot Edit EditText's text in PopupWindow

i have a EditText in a PopupWindow, when the PopupWindow comes up cursor in EditText is visble but i cannot edit its text. my codes: popupwindolayout.xml:
arsenal
  • 199
  • 1
  • 1
  • 13
2
votes
1 answer

Popup showAtLocation is not working

I'm using pop-window to show some text-view while clicking the edit-text . but pop-window is not showing at particular location ,it always showing at left top corner , here is my code ,what is wrong in that private void showPopup(Context…
Strawberry
  • 667
  • 2
  • 10
  • 24
2
votes
2 answers

Listview inside popup window height is not changing

I am using a listview inside a popup window and listview shows some dynamic contents. I want to set height of the listview, based on contents but it should not exceed a particular height.Since i couldn't set a maximum height to that listview, I…
Anu
  • 1,303
  • 3
  • 23
  • 38
2
votes
1 answer

New style to show the hint to the user in Android

How to show such kind of hints or instructions for the user, and after tap on this the hints it will be invisible.
Born To Win
  • 3,319
  • 3
  • 19
  • 27
2
votes
0 answers

android how to see the touch priority of views

I have a popupWindow and it looks the onClick of a view in it not called and some other view takes the touch. How can I increase the touch priority of a view? This is how I implemented the onClick of the view. The view is inside a…
anuj
  • 1,010
  • 2
  • 11
  • 26
1
vote
0 answers

Keyboard hiding behind compose popup android

I have created a popup in jet pack compose android which is attached with screen bottom and taking inputs. Using popup() jetpack component. But as soon as I focus on text field keyboard is opening but it’s behind the popup. I am not sure why…