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

Why my imageView doesn't change with registerForActivityResult?

I want to make an app, where i click on button on bottomNavigationView and PopupWindow opens, i can choose image (thumbnail) and Video from my gallery, add description and title. Then add provided data to recyclerView. But i have a problem with…
Dominik
  • 89
  • 1
  • 8
1
vote
0 answers

Android PopupWindow not dismisses

I use PopupWindow to show menu in Fragment and then navigate with Navigation Compopnent to another Fragment override fun createPopupMenu(popupView: View?) { if (popupView == null) return menuPopup = PopupWindow(context).apply { …
Anton A.
  • 1,718
  • 15
  • 37
1
vote
0 answers

Sometimes for the short period opened softkeyboard decreases the WindowVisibleDisplayFrame area more than it's needed for softkeyboard placement

I need the keyboard to cover the main content on the screen but some views should be placed above the keyboard. So I use WindowManager.LayoutParams.SOFT_INPUT_ADJUST_NOTHING for my activity and hack with a transparent popupWindow and…
1
vote
0 answers

Run the same ADB Shell script on multiple emulators running simultaneously

While running automated UI tests with multiple workers I would like to execute the following script: beforeAll(async () => { if (device.getPlatform() === 'android') { console.log('*** disable android system popups ***') …
1
vote
1 answer

How to show/hide Popup when I have a Tab Layout with multiple fragments being displayed in Jetpack Compose?

I have Tab Layout with multiple fragments and I would like to display a Popup only when a specific screen is being displayed. I am using the Jetpack Compose Popup component. I followed the docs and currently the popup is always being displayed…
1
vote
0 answers

Popupwindow above a view differs position

i was trying to show popupwindow above the view to the right corner i have used the below code val minusY = UiUtil.pxFromDp(requireContext(), -300f) // this is the height of the popupwindow 300dp popupWindow?.showAsDropDown(achorView,…
avez raj
  • 2,055
  • 2
  • 22
  • 37
1
vote
1 answer

How to set the height of popup window in android Java

[![enter image description here][1]][1] Hi, How can achieve the above image. when user clicks on the profile icon then the pop up window will display. But here the problem i am getting is pop up window is covering the whole height from anchor view.…
vijju
  • 462
  • 9
  • 30
1
vote
1 answer

Show Android popup window below another view

I am trying to show a popup right below the center of another view (anchorView). But I cannot control the location using the code below. I don't know how to use showAtLocation correctly. It seems the anchorView paramter does not function in the way…
user2818066
  • 618
  • 2
  • 8
  • 19
1
vote
1 answer

ListPopupWindow animation starts in textfield instead of below it

I added aListPopupWindow anchored to a TextInputLayout. The issue I have with this is that the animation for the popup starts within the TextInputLayout: Note that the issue is just where the animation starts. After the animation has finished, the…
1
vote
0 answers

PopupWindow: show it just above a given View

I've got a Button, and upon clicking it I would like to show a PopupWindow. The Window should be displayed just above the Button. I have read: Android - PopupWindow above a specific view where the approved answer is…
Leszek
  • 1,181
  • 1
  • 10
  • 21
1
vote
1 answer

How to get selected Popup Menu item position value and pass it

I've got a Popup menu that should launch a Maps intent whenever a Popup menu item is clicked. In popupMenu.setOnMenuItemClickListener, does anyone know how I can pass the String of the clicked Popup menu item (from the arrayAMap array) and use it…
1
vote
3 answers

RecyclerView inside PopupWindow, how to dismiss after clicking item?

I have a recyclerview inside my PopupWindow, how do I dismiss the PopupWindow after clicking on an item inside my recycler? public SelectBucketMenu(Context context, ArrayList mBucketNames, ArrayList mImagesBucket) { …
DIRTY DAVE
  • 2,523
  • 2
  • 20
  • 83
1
vote
0 answers

How to show the android preferences activity inside a popup window?

I have a functioning settings activity (the default one that Android studio generates) which I would like to display inside a PopupWindow. I researched how to do this and most answers that show how to display an activity inside a popup window…
1
vote
1 answer

Create a popup window with a next button when a user gives the right answer to my question in the quiz

I am creating a quiz app where i want to make to create a popup window, when a user gives the right answer a popup should appear showing a text that he has given a right answer and a button. The button should move user to the next question in the…
1
vote
1 answer

Popup window android is not setting above view in android?

At the bottom right of the page I have a view on whose click I am opening the pop up window. But it opens up overlapping the view. I want it to open above the view. Below are the screenshots. And below is my code Creating the window as…
WISHY
  • 11,067
  • 25
  • 105
  • 197