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

android - filter listview inside popupwindow

I am not able to filter listview which is inside a Popupwindow. It fails with an exception android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@150769 is not valid; is your activity running? at…
GJain
  • 5,025
  • 6
  • 48
  • 82
0
votes
1 answer

Android - Open dialogue builder in fancy way

I have been using android dialog builder by inflating layouts in it. Everything is working fine and perfect. But now, I want to change the way of opening of the dialog builder. I want open the dialog builder like the swipe card. .i.e. From left to…
kamranbhatti585
  • 232
  • 2
  • 16
0
votes
1 answer

Show ListView inside Popup Window using service class in Android

I want to show a Custom Listview inside a popup window using service class. This list is fetching data from database and working fine in an activity but not in popup window. Below is my code. Any help will be appreciated. This is my Service…
0
votes
3 answers

Android : Approach of passing variable generated in click event of fragment and popup window to activity

I wonder what kind of approach available for the transfer of the variable generated from class of fragment or popup window to activity provided that the fragment or popup window class is separated from activity. Any code example of elegant approach…
0
votes
2 answers

using a switch inside a popup

I am trying to create a filter function, I have a pop up window in my Search activity it displays list of switches where the user can turn some of them off and on.. I got the pop up to display fine but whenever I tick any switch the value is not…
Abdul
  • 1,537
  • 2
  • 13
  • 22
0
votes
2 answers

PopupWindow has been shown but I still can scroll the recyclerview

I want to copy the text content in item of a RecyclerView, so I set a OnLongClickListener on the TextView, while it will show a PopupWindow that contain a copy button. My problem is that while I am still touching the RecycleView when the PopupWindow…
naiyu
  • 745
  • 3
  • 9
  • 25
0
votes
1 answer

How to dismiss PopupWindow with touch outside when its mFocusable set false?

I have a PopupWindow and it is setFocusable(false), I want to dismiss it when touch outside, and it is already setOutsideTouchable(true), but with the setFocusable(false) it doesn't work, how can I solve this? Thanks in advance. All the properties…
twlkyao
  • 14,302
  • 7
  • 27
  • 44
0
votes
1 answer

Show pop up on activity create fails

I am trying to show popup on activity on create() method but nothing seems to be happen .. No exception no popup. Following is code protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
Rajeev Kumar
  • 4,901
  • 8
  • 48
  • 83
0
votes
2 answers

Android popup menu is not loading menu

In my android app I have a menu option which works when the device has dedicated hardware menu option. for another device I don't have dedicated Menu button so I tried to add a button and on click of that a popup will display the menu, The popup is…
Vipul Singh
  • 393
  • 9
  • 26
0
votes
1 answer

PopUpWindow displays incorrectly

I am trying to replicate this layout of this view (not necessarily the rounded rectangles of the editText boxes, just the widths/layout): The dimmed background color, the editText's widths. However, I'm getting this: No transparent background…
user-44651
  • 3,924
  • 6
  • 41
  • 87
0
votes
1 answer

PopupWindow cannot display Unity3D views in Android, but Dialog does?

Here is some brief codes of my project, in which I'd like to display a Unity3D model to do something. public class MainActivity extends FragmentActivity{ protected UnityPlayer mUnityPlayer; @Override protected void onCreate(Bundle…
Luppiter
  • 73
  • 1
  • 13
0
votes
1 answer

Android : PopUp window like AZ Screen Recorder App

As I am developing my first Android app, recording mobile screen using this tutorial. Now I want to display my recorded video like following Pop-up window layout with share functionality of the AZ Screen Recorder in my android app. How to implement…
SRK
  • 744
  • 3
  • 11
  • 23
0
votes
1 answer

AutocompleteTextView PopupWindow height

I have a AutoCompleteTextView at the top of my screen and have used the default List that is associated with the AutoCompleteTextView to display my data. I have a bottom navigation bar, at the bottom of my screen, which is visible even when the…
Roadblock
  • 2,041
  • 2
  • 24
  • 38
0
votes
0 answers

How to check whether ACTION_VIEW is done or not in Android PopupWindow

Below is my code. I had gone through some links but not found the solution.I want to know whether user has completed the ACTION_VIEW or not or simply pressed the back button. Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse("url")); …
Sagar Gangawane
  • 1,985
  • 1
  • 12
  • 22
0
votes
0 answers

PopupWindow.setWindowLayoutType() on API < 23

I just want to know if there's a way of applying PopupWindow.setWindowLayoutType() on API < 23. Based on the documentation, it can only be use on API 23 and above. But is there a hack or workaround? I have a custom toast. I want this toast to…
mgcaguioa
  • 1,443
  • 16
  • 19