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

Custom PopUp Menu

Hello i have to create a PopUp Menu and i know how to do that. Here is my code to create default PopUp Menu .. popup_menu.xml
iMDroid
  • 2,108
  • 1
  • 16
  • 29
5
votes
1 answer

Android - use spinner default drop shadow

I've created my own android drop down list (spinner). Its custom made by using a popupWindow(...). Now i would like to style it accordingly. I'd like to apply the same styles that a spinner drop down has or even another kind of drop down. Im…
j2emanue
  • 60,549
  • 65
  • 286
  • 456
5
votes
1 answer

Showing a popup window from Fragment

I want to show a popup window from my PlaceHodler class extending Fragment when the button is clicked. For a test, I wrote this code which really works, but I guess it's ridiculous (using Button object as a parent view and so on... I couldn't find…
5
votes
2 answers

Android popupWindow, cant get elements within popup

I am having an issue with grabbing my Buttons and other elements from within my PopupWindow, using the debugger it just report back as null? private void initiatePopupWindow() { try { // We…
dave
  • 1,410
  • 1
  • 16
  • 42
4
votes
4 answers

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
4
votes
2 answers

How to show a customized Popup window near the touch location, like what we have when we use ContextMenu?

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 acts like it). The problem When using a context menu…
4
votes
3 answers

showAsDropDown Gravity parameter not working

I am trying to center horizontally a PopUpWindow on the anchored view, but the Gravity.CENTER parameter is being ignored. This is the method I am using: popupWindow.showAsDropDown(anchorView, 0, 0, Gravity.CENTER); No matter what CENTER gravity…
Shadow
  • 4,168
  • 5
  • 41
  • 72
4
votes
2 answers

Exception when using Rg.Plugins.Popup in xamarin forms

I have a list view populated in popup. I am using 1.0.4 version of Rg.plugins.popup. on selecting list item, I'm calling PopupNavigation.PopAsync(true); to close the popup. but sometimes I'm getting below…
Sai Sunkari
  • 179
  • 3
  • 27
4
votes
0 answers

Anchor SuggestionPopup to TextView

I have a problem with a custom PopupWindow associated with a TextView with the method setSuggestionPopup. When I click in the TextView and my layout scrolls up so that the TextView is not covered by the virtual keyboard my custom popup doesn't…
TheOni
  • 810
  • 9
  • 26
4
votes
1 answer

How to change position of showAsDropdown popup window if there is not enough space in the bottom?

I am using a recyclerview which has a menu for each of its item. I am using a pop up window to achieve the same instead of pop up menu as I have a customized layout. The issue that I am facing is that when I open the menu from the items at bottom of…
4
votes
1 answer

How to display popup instead of CAB when textview is selected?

I am making a reading app and it has a full screen activity. When user selects the part of the text a contextual action bar appears with option of copy. This is the default behaviour. But this actionbar blocks the text under it so user cannot select…
Salih Erikci
  • 5,076
  • 12
  • 39
  • 69
4
votes
7 answers

How to dismiss a popup in Android?

I have a Popup window that pops up when a button in an activity is clicked. The dialog covers the whole screen and contains only three buttons. If a button is clicked, then they function accordingly. However, if a user touches anywhere in a popup…
sangeeta
  • 158
  • 4
  • 14
4
votes
4 answers

Android Studio annoying popup window for layout_width and layout_height

I'm using Android Studio 2.2.3 on Mac. Whenever I add a new element in a layout resource XML, the layout_width and layout_height attributes are auto-completed and the cursor jumps to the value of layout_width (which is fine). The problem is that…
weibeld
  • 13,643
  • 2
  • 36
  • 50
4
votes
1 answer

How can I customize keyPreview and popUpKeyboard appearance without implementing KeyboardView form scratch?

I'm trying to extend my custom KeyboardView. Is there any way to customize the keyPreview and popUpKeyboard appearance without implementing the KeyboardView from scratch ?
4
votes
2 answers

Display PopupWindow while Dialog is showing

Premise: with "on top of" I mean "overlaying", with a "higher z-index", so to speak; with "above" I mean "visually above, on the screen". I guess the question would be "how to display a PopupWindow on top of the keyboard when a Dialog is…
nonzaprej
  • 1,322
  • 2
  • 21
  • 30
1 2
3
24 25