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

Popup window dismiss on outside touch not working

Please check what I have tried so far before down voting for duplicate. I am trying to dismiss the popup window on outside touch. I have tried every solution available but it is not working. 1st try : pwindo.setBackgroundDrawable(new…
Nitish
  • 13,845
  • 28
  • 135
  • 263
1
vote
0 answers

PopupWindows are shown in reversed order after application is resumed

On devices with Android >= 4.4.2 I've faced a strange behavior of popupWindows. If more than 1 window is opened, and you switch to another application, then after you resume first application, all popupWindows will be shown in the reversed order (I…
Mika
  • 243
  • 1
  • 6
1
vote
1 answer

popup window is not properly shown in android L

this is how it looks like on android L : where as on jelly bean it looks like : here is layout xml file:
1
vote
0 answers

Trying to print a dialog through a static context on View v

I am trying to print a dialog through a static context on View v. I am running into the error "cannot be referenced from static context." I am also not sure how to bring View v to the function. Thank you for your help. public class QuizActivity…
user190494
  • 509
  • 2
  • 8
  • 20
1
vote
0 answers

Popup Menu not expanding (popup height is always the same)

MainActivity extends android.support.v7.app.ActionBarActivity Code from MainActivity.java @Override public boolean onOptionsItemSelected(MenuItem item) { // Handle action bar item clicks here. int id = item.getItemId(); switch (id) { …
vovahost
  • 34,185
  • 17
  • 113
  • 116
1
vote
1 answer

How to create modal popup in Android?

I'm not up to date with Android solutions and I wonder what is the most current way to display popup/modal/alert dialog in application? 2 years ago I used to use alert (or fragment) dialogs with custom view. I heard that nowadays this is possible by…
1
vote
1 answer

PopupWindow not showing

I have founded many solutions for this problem but none of them have worked for me. I want to show a PopupWindow inside a Fragment. This is my code LayoutInflater layoutInflater = LayoutInflater.from(getActivity()); View popupView =…
martinc
  • 89
  • 2
  • 11
1
vote
1 answer

how to create popup in oncreate method of service class

I am trying to create popup window on home screen when an floating image is clicked (using windowmanager). so while using layoutinflater , I am not able to set a viewgroup in the second argument as findviewbyId is not recognised. so I kept null.…
kavuru
  • 379
  • 3
  • 4
  • 14
1
vote
1 answer

Android SearchView without using CursorAdapter

I want to use Android SearchView but, I have a limitation that I can not use Cursor Adapter. What are the other adapter one can use with SearchView? My current fallback is to use ListViewPopUp but it has it's own issue of interaction with menu and…
VendettaDroid
  • 3,131
  • 2
  • 28
  • 41
1
vote
1 answer

Show a fragment on a Dialog Fragment or Popupwindow from a FragmentActivity

I have this code for my Emojiicons which I want to show if the user clicks on the emoji logo. I cant make that toggle between keyboard so as an alternative I am doing this. //R.layout.popup_item
1
vote
1 answer

PopupWindow + full screen => show notification-bar?

Background I'm making an activity that has 2 fragments. the second fragment shows a full screen image, which also hides the status bar (AKA notification bar) using: final View decorView = getActivity().getWindow().getDecorView(); int…
1
vote
1 answer

Styling pop up menu with actionbarcompat

I've PopUpMenu with support library v7 in my application which works as expected. But styling PopUpMenu is not working with styles of actionbarcompat. styles.xml in values as follows :