android-popupwindow Questions
13
I would like to be able to either blur or dim the background when I show my popup window using popup.showAtLocation, and unblur/dim the background when popup.dismiss is called.
I have tried applyi...
Bailee asked 11/7, 2010 at 1:25
5
I hava a popup window in my application, its appears when some button clicked
I want to set fade in animation to this window,
I put the xml file in "res/anim" folder and set the animation...
Nipple asked 12/2, 2012 at 9:35
2
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$PopupDeco...
Gavrilla asked 26/5, 2021 at 23:50
1
I have set Enter/Exit animation style for PopupWindow like this
mPopupWindow.setAnimationStyle(R.style.PopupAnimation);
and style as
<style name="PopupAnimation" parent="Widget.AppCompat.P...
Interradial asked 31/10, 2015 at 1:38
4
Solved
I made a custom keyboard. When you long press a key, a PopupWindow shows some extra choices above the key. The problem is that in API 28, this popup gets clipped (or even completely hidden for the ...
Kobe asked 22/10, 2018 at 12:31
6
I'm creating a popupWindow but it is not showing on my Fragment when I call it.
Here is my code for the popupWindow:
LayoutInflater layoutInflater =
(LayoutInflater)getActivity()
.getSystemServ...
Craquelure asked 28/1, 2015 at 11:29
2
Background
Seeing that it's not officially possible to have a context menu which has a customized view or even icons for its rows (here), I decided to create my own solution (of custom view that a...
Hhour asked 31/7, 2019 at 12:17
11
I tried to change background of popupmenu, but my implementation does not work.
This is my code:
<style name="MyHoloLight" parent="android:Theme.Holo.Light">
<item name="android:popupM...
Inexperienced asked 11/3, 2014 at 8:53
8
Solved
To create a simple working PopupWindow, we need to do the following:
popup_example.xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/ap...
Gelman asked 10/5, 2011 at 3:55
3
Solved
Android PopupWindow does not show shadows when the elevation is set. It appears to support it from the documentation. I am using 5.0 Lollipop.
Creating the popup as follows:
popupWindow = new P...
Aceto asked 2/12, 2014 at 21:47
3
Solved
Which component do I choose to achieve custom dialog at the bottom as shown in the below image? Shall I choose alertdialog,popupwindow, or fragmentdialog?
Chemisette asked 18/2, 2017 at 12:29
6
I use following code to show a small popup:
public static PopupWindow showImportMenu(Activity activity, View anchor, PopupWindowClickListener onClickListener)
{
LayoutInflater inflater = LayoutIn...
Tragacanth asked 10/4, 2017 at 19:44
3
I want to open this permission popup in MIUI. I have tried this code, but this will not open permission manager popup for a particular app.
public static Intent toPermissionManager(Context conte...
Umber asked 21/3, 2016 at 4:50
3
How do I style my PopupWindow in Android with a white background but still keep the shadow? I am trying to create something like [this][1]:
By default, my PopupWindow has a dark background. So I...
Benoit asked 25/3, 2015 at 19:13
2
Solved
I'm using a couple of PopupMenus in my app and they all working as expected
But I would like to have white lines separating the individual items, but I can't find where I'm meant to be setting t...
Cryptogam asked 19/11, 2016 at 15:18
3
Solved
Can I dim the background using a PopupWindow instead of a Dialog? I am asking this because I am using Dialogs but the Dialog doesn't show below the item clicked and with the PopupWindow I already h...
Nador asked 8/3, 2016 at 17:27
2
I have created style that change the popup menu background color and now i need to know how to change the menu item text color too. Below is the style i am using
<style name="AppTheme" parent="...
Chacha asked 19/1, 2015 at 3:37
3
This is related to this question:
Android Nougat PopupWindow showAsDropDown(...) Gravity not working
However, when I applied this fix:
if (android.os.Build.VERSION.SDK_INT >=24) {
int[] a = n...
Tankersley asked 1/2, 2017 at 7:10
2
I keep on getting this error when I try to setErrorEnabled on my textInputLayout :
03-12 12:29:03.206 5706-5706/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.myapp, PID: 5706
java.lang....
Vociferant asked 12/3, 2016 at 10:41
1
Solved
I have implemented a caller ID feature where when the screen is locked it should open the lock and show the popup with the name of the person calling.
this is the code i've added in the onCreate()...
Ezarra asked 28/8, 2017 at 5:10
2
Currently , I am programatically creating a popupmenu which displays a list of floors and a title. However, changing the background color of just the title and adding a close button to title is tur...
Sliding asked 24/4, 2017 at 16:13
2
Solved
Background
I had to create a spinner-like view, which has this behavior:
textView that has the selected item text in it, with an arrow icon on the right that indicates whether it's in "open" sta...
Verney asked 29/1, 2017 at 10:31
2
Solved
I am doing a Popup with 3 Spinners and an EditText. After reading many blogs and articles I can't decide which is the best option, PopupWindow or DialogFragment.
The criteria would be:
Compatibi...
Telpherage asked 1/3, 2013 at 19:34
2
Solved
I am trying to make a simple pop up window. But every time I make one, it ends up being super small...and not the length I want it to be. This is how the pop up looks:
Here is my layout for the p...
Polypetalous asked 17/8, 2016 at 3:2
1
Solved
Here's how I create a PopupWindow:
private static PopupWindow createPopup(FragmentActivity activity, View view)
{
PopupWindow popup = new PopupWindow(view, ViewGroup.LayoutParams.WRAP_CONTENT, Vi...
Mease asked 27/6, 2016 at 9:23
1 Next >
© 2022 - 2024 — McMap. All rights reserved.