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

how to get reference to popup window from menu on android

I have a toolbar menu in my android app, the menu is populated by xml like this...
Rafael Lima
  • 3,079
  • 3
  • 41
  • 105
1
vote
3 answers

how to change margin between items in popupmenu

I want to change the space between items in my popupmenu on android the space i mean is this one: I hope there is a straight foward solution, but as i know android it shall not be so simple anyway i would like also to set the maxHeight of my…
Rafael Lima
  • 3,079
  • 3
  • 41
  • 105
1
vote
1 answer

When I build a popupWindow from a dialog in Android 9.0, whose positionX is minus, the left content of popupWindow is clipped

When I build a popupWindow from a dialog in Android 9.0, whose positionX is negative, the left content of popupWindow is clipped. I tried this on all other systems (before 9.0), it works normal, popupWindow normally was shown left of the…
CuiHaichen
  • 31
  • 2
1
vote
2 answers

Anchoring a PopupMenu to an ImageView

I have an ImageView that opens a PopupMenu on click. How can I set the PopupMenu to display at a certain position? The PopupMenu will serve as a drop down menu and I would like the top right corner of the PopupMenu to be where the user clicked. See…
Isaac Perez
  • 570
  • 2
  • 15
  • 31
1
vote
1 answer

Pop up window / show as drop down

popupwindow_obj.showAsDropDown(clickbtn, -40, 18); // where u want show on view click event popupwindow.showAsDropDown(view, x, y); Why is it that it is needed to specify absolute x and y co-ordinate values for pop up window object to be shown as…
V. Raman
  • 211
  • 1
  • 4
  • 17
1
vote
7 answers

How do I enable a popup to close when clicked outside of it?

I am trying to make a popup that is going to have text fields and information to ask the user but I am wondering how to make it so that the user can close it by clicking outside of the popup where the main fragment / activity is. @Override …
1
vote
1 answer

AutoCompleteTextView dropDown height is incorrect

I am using AutoCompleteTextView with custom item_layout. If layout_width is not match_parent there is a scrollbar showing even I have only one hint when hint is too big. But if we use width match_parent there is no scrollbar. I want to use limited…
1
vote
0 answers

Hide popups while some activity is opened in custom android app

i want to know that is there any way by which we can disable or hide the popup when our apps is opened.No popup should be show over the screen while My App is opened.Like Facebook Messenger or Whatsapp Popup came over the screen anytime. Thanks.
Fahad Shahid
  • 123
  • 6
1
vote
0 answers

Android Popup weird behaviour in Scroll View

I have a Popup window Anchored to a Text View popUpWindow.showAsDropDown(textView, final_placement_width, final_placement_height); and when ever I scroll down this TextView will move up along with the popup window. The problem is if i scroll down…
Mysterious_android
  • 598
  • 2
  • 9
  • 32
1
vote
0 answers

Show PopupWindow on ListItem Click dynamically change ContentView data based on item click

I have a ListView in SomeActivity conatins employee names. On item list click i want to popup a window which displays employee details of clicked item. i tried this popupwindow.xml
Ramesh Kumar
  • 1,241
  • 1
  • 9
  • 15
1
vote
1 answer

popup window button not working

I am developing app having a popup window showing successfully but button inside is not working. When the button is click the event is not listening. The code is shown below. private void showPopup() { //LayoutInflater inflater =…
Fazil fazi
  • 439
  • 1
  • 4
  • 15
1
vote
2 answers

How to adjust popup menu when pop outside container

I am using a custom popup menu that pops inside a RecycleView container. When the view touched is the on at the bottom, the popup menu hides the controls bellow the RecycleView. I want to adjust the popup position in this case, bringing the popup…
MiguelSlv
  • 14,067
  • 15
  • 102
  • 169
1
vote
0 answers

IllegalStateException in PopupWindow showAtLocation

I created a custom button that shows a PopupWindow when touched. This works perfectly on all my devices as well as the Android emulator. However, I sometimes get crash reports on Google Developer Console, but unfortunately I can't reproduce it and…
1
vote
0 answers

Android: Is it possible to set parent of PopupWindow?

I displayed PopupWindow in fragment and it works well except when side menu appears. Side menu is displayed behind the PopupWindow which I don't want. So I think it would be good to set parent of PopupWindow or maybe zOrder. LinearLayout…
Roy
  • 676
  • 8
  • 22
1
vote
2 answers

Show popup in recyclerView exactly where the button is, in android

I'm working on a gridLayout with recyclerView in android.I've a an option with each grid Item where I want to show my popup activity which is another class. Please see the image - There is a menu option with each Item. and my popup activity java…
Tanvir Durlove
  • 768
  • 2
  • 9
  • 21