360 questions
0
votes
0
answers
43
views
How to close popup window on action_up?
I need to override back event handling when popup is displayed.
I made it with OnBackPressedCallback. If such action is done by system button, it works fine. But back gesture closes popup instantly on ...
0
votes
1
answer
360
views
Request for permission (Pop - up) dialog is not showing in Android
I have the following register initialized in onCreate method of an AppCompatActivity class:
ActivityResultLauncher<String> requestPermissionLauncher =
registerForActivityResult(...
3
votes
0
answers
396
views
Positioning & sizing a PopUp composable to fake a DropDown component
I am trying to recreate a drop-down-like component that I found on another app using Jetpack Compose, but I am facing issues around sizing and positioning. Here is the approximate look I am going for:
...
0
votes
1
answer
68
views
How do I create keypreview from InputMethodService using PopupWindow in android?
I am trying to create custom keyboard for android system with Buttons and it is working fine. But now I want to add key preview. I am new in android, plese help me if it is possible showing ...
3
votes
0
answers
540
views
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 ...
0
votes
1
answer
448
views
How to use RecyclerView inside PopupWindow
I have and simple app form (Android dev course) and I learn to use RecyclerView. The code works fine (if I use RecyclerView in MainActivity) but if I want to put that RecyclerView inside a PopupWindow,...
0
votes
1
answer
177
views
Android getActivity() Context Goes Stale Over Time in PopupWindow
I have an app that uses a popupWindow for user chat. It is launched from a Fragment, and the supplied context is getActivity(). I will be typing in the popupWindow's multilineEditText and, after about ...
0
votes
0
answers
174
views
SeekBar not working while used in pop up window java android studio
Hi I've been trying to make a pop up window which presents a trackable seekbar as a part of a school project, both parts of the code work alone but when put together the seekbar progress is not ...
0
votes
0
answers
846
views
Android: PopupWindow animationStyle not working
I have been stuck on this for a while now and went through other posts on this site but nothing works for me. I tried to create a basic dummy project and still no luck.
I am trying to use animations ...
0
votes
1
answer
162
views
How to add items to RecyclerView from EditText, ImageView with onClickListener?
so I want to make an app, where you can add data such as Image, Video, description and Title from PopupWindow, then by clicking AddButton it will add provided data to recyclerView. I know I need to ...
1
vote
3
answers
176
views
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 ...
0
votes
2
answers
60
views
How to add onClickListener which opens gallery inside popupWindow
so i want to add video, and image selection inside a popupWindow and later add all of this inside recyclerView. But when i try to open my popupWindow app crashes, i checked my logcat and i understand ...
0
votes
1
answer
558
views
Show RecyclerView/PopupWIndow by anchoring below or above edittext depending on where the cursor is and depending on screen available height
I am trying to display @ user mentions like facebook or twitter. I am able to implement this functionality. But i have a ui problem.
If edittext is at the bottom of the screen i need to show ...
0
votes
1
answer
1k
views
Android: bottom popup activity
Hello : i want to make my activity appear like that my activity have a edittext with button inside cardview only
.
0
votes
1
answer
1k
views
How to use the setText() Method in a PopUp Window In Android Studio?
I have an editText box in my activity in which the user enters his/her phone number and then clicks on a Next button. Now, on clicking on the Button, I have inflated a popup view that shows the user ...
1
vote
1
answer
481
views
PopUpWindow ignores fullscreen and also the CutoutMode
My app is a full screen app. It goes full width and does not show a status bar, uses CutoutMode and hides controls like (Home and Back). This also works well.
However, when I create a PopUpWindow, ...
1
vote
0
answers
123
views
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
...
0
votes
1
answer
181
views
correct positioning a PopupWindow when app itself in 'multi-window' or 'pop-up window' mode
I've got a PopupWindow 'mPlayPopup' that I want to get displayed just below a certain View 'mPlayButton'. Here's how I do it:
mPlayButton = new Button(activity);
mPlayButton.setOnClickListener( new ...
1
vote
0
answers
47
views
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 ...
-1
votes
1
answer
61
views
How to create this type of dialog in android studio with java?
I want to show this popup dialog when user select any image from recyclerview and this popup dialog this image by down arrow as showing in image.
12
votes
2
answers
3k
views
Adding ComposeView to PopupWindow's contentView crashes
I'm trying to show a PopupWindow from a Fragment, and then add a ComposableView to the Popup contentView, and it crashes because the ViewTreeLifecycleOwner is not found for PopupDecorView$...
0
votes
1
answer
415
views
Android PopupWindow dismiss interrupts the ripple effect half way through
I have a PopupWindow which uses a custom layout with a single Button.
The Button has android:background="?attr/selectableItemBackground" set to have a ripple effect. The ripple effect works ...
0
votes
1
answer
449
views
PopupWindow wrong Y position
I want to display the popup in the position where the user clicked on the screen, I use the function - showAtLocation (mainView, Gravity.TOP or Gravity.START, posX, posY), everything is fine in the x ...
0
votes
1
answer
53
views
Is it possible to use ActionBar in popup window
In my Class which extends ListFragment I have a popup window which shows when I click one button. My problem is I don't know if I can use ActionBar in it. I mean I want to get an back arrow and it ...
0
votes
0
answers
121
views
I'm clicking inside my popup and it is closing
Good afternoon, I am clicking inside the popupview, and it is closing, the behavior I hope is that the click event will only be triggered by clicking outside, but as you can see the popup is occupying ...
1
vote
0
answers
349
views
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('*** ...
0
votes
2
answers
219
views
PopupWindow not shown as expected (preview is ok)
I'm trying to show a full screen popup window from a fragment. I was starting the layout for the screen and it looked as expected in the AS screen preview, but it doesn't when it is executed in a ...
1
vote
1
answer
2k
views
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 ...
0
votes
1
answer
774
views
Elevation is not working in PopupWindow Android
I am using PopupWindow in my android app and its working fine. But I have to add elevation to it but its not working. Here is how I am doing it
View to show in popup window popup_view_order_status
...
2
votes
0
answers
47
views
How to detect AutoCompleteTextView popup direction
I'm trying to set a custom drawable to my AutoCompleteTextView's popup background.
This is my drawable:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape=...
1
vote
0
answers
61
views
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
...
1
vote
1
answer
580
views
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 ...
1
vote
1
answer
639
views
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 ...
1
vote
1
answer
338
views
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 ...
2
votes
0
answers
203
views
How to dismiss PopupWindow by swipe to top while using ZoomageView inside it?
I'm using the ZoomageView library in PopupWindows to show an image with zoomable capacity. But the problem is that I want to dismiss it by a swipe to the top but can't because ZoomageView has its own ...
0
votes
1
answer
190
views
How to create an Android PopupWindow which will popup on top of whatever is currently active?
I want to create a popupWindow which behaves like a dialog. I will have a daemon running in the background and once the daemon receives a signal the popupWindow shall appear on top of whatever is ...
3
votes
0
answers
190
views
Android PopupWindow TooManySurfacesException
My game windows are all floating PopupWindows
backpackPopupWindow = new PopupWindow(backpackView, width, height, focusable);
Some of my users reported after 30 minutes or so it will randomly crash ...
4
votes
4
answers
9k
views
How to set rounded background for list popup window?
I have a menu which has sharp rectangle background. I have tried a lot i can't change it to rounded background.
popup_menu.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/...
2
votes
0
answers
630
views
MIUI 11 preventing Activities (of other apps) being launched from foreground service?
In some recent MIUI 11 update, it seems no longer possible to launch an Activity (at least, of another app) from a System Alert Window (SAW) running in a Foreground Service. I can confirm on my MIUI ...
0
votes
0
answers
264
views
Inflating Popup In Async Task Android
I'm currently trying to implement a custom loading dialog, However when I try to inflate my layout in the PreExecute of an AsyncTask the app crashes with a BadTokenException. I haven't been able to ...
0
votes
1
answer
1k
views
How to move a view from right to left continuous using animations?
I want to show a navigation guide for that I am using popup window in which I have a hand image which should move from right to left of the window continuous. It should start from right, go to left ...
0
votes
1
answer
471
views
Popup window with recycler view background not working
I want to show popup window with Recycler view for menu.
popup window top right corner -> i am showing sort up arrow icon.
So i set the transparent background for popup window and showing recycler ...
2
votes
2
answers
2k
views
Dim or blur background of popup window
I am able to get the pop up window but the background is transparent also I am able to read the contents of the activity behind it. I want to dim the background so the pop up and the older activity ...
1
vote
0
answers
377
views
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 ...
1
vote
1
answer
1k
views
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 ...
1
vote
3
answers
2k
views
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<String> ...
4
votes
3
answers
2k
views
PopupWindow being cutoff towards bottom of screen
PopupWindow inflates fine until it is near bottom of screen it's being cut off. Anyone know how I can it inflate upwards when it's towards bottom of screen?
public SelectBucketMenu(Context context) {
...
0
votes
1
answer
1k
views
How to set PopupWindow at bottom of root layout like soft keyboard?
whenever focus is available on edittext.
Keyboard is open and all views are adjust and go upward like below sample image.
Button.setOnClickListener(new View.OnClickListener() {
@Override
...
2
votes
2
answers
358
views
PopupWindow not inflating on API 19
My PopupWindow is working perfectly fine on my API 28,29 Emulators, but not sure why it's not showing any view on my API 19 real device. The window is definitely created though because when I click on ...
2
votes
1
answer
5k
views
How to make a popup on a button click inside a fragment page of ViewPager ? Using Kotlin
My app has an activity with ViewPager of three Fragment as pages and each pages has some buttons.
So my question is, Is it possible to popup a message or a dialog when click on these buttons, which ...