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

How to dismiss PopupWindow tap outside

How do I dismiss PopupWindow when I tap outside? This is my code: private void initiatePopupWindow(View viewButton) { LayoutInflater inflater = (LayoutInflater) MainActivity.this …
0
votes
1 answer

How to communicate between a canvas embedded in popupWindow and activity

I want to show a statistic page as a popup from an activity. My question is how do I hand off the data to the canvas drawing it? My popupWindow xml is:
Mairyu
  • 809
  • 7
  • 24
0
votes
0 answers

RecyclerView item loses padding on small screen but not large

I'm experiencing unusual behaviour with my RecyclerView which is displayed inside a PopupWindow. On my large screen device (Galaxy Note 10.1), it displays fine immediately: However, on my two smaller screen devices (Nexus 6P and Galaxy Note 8), the…
S Fitz
  • 1,074
  • 15
  • 31
0
votes
2 answers

Close custom popup when it pressed outsided of the popup

I'm creating a custom popup using dialog in android. When using custom popup I'm using a cancel button for closing it. But now I want to close it by touching outside of that popup. how to to? What I've tried till now private void showDetails() { …
Tanvir Durlove
  • 768
  • 2
  • 9
  • 21
0
votes
2 answers

How to access List<> array inside the the activity java class from BaseAdapter class

I am creating a pop up menu dynamically, where the items will be populated from the web service. The situation is, the parsing has been in the MainActivity.java, but the Pop up menu is inside the BaseAdapter.java class. I am adding all the menu…
0
votes
0 answers

Soft keyboard hides popup window

I had used emoji library in my app. Most of the devices its working perfectly, but in some devices unable to show emoji popup window at the bottom of the screen. The device soft input keyboard fully hides the emoji popup in bottom of the screen.
Bala
  • 87
  • 1
  • 7
0
votes
1 answer

Android ListView with default ArrayAdapter is oversized when displayed

API Level: 17 I am having trouble with changing the default size of a ListView in a file browsing app. This is still just a prototype (see background color) but the list inside a popup window works really well! Except that it's too big and…
0
votes
1 answer

show popup window on lock screen

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() of the PopupActivity. …
0
votes
1 answer

getActivity() NullPointerException After Entering Multi-Window Mode

I have a Fragment that brings up a PopupWindow when a Button is pressed. In this PopupWindow, there is a TextView and another Button. Pressing this Button puts the text in the TextView in the Clipboard and also shows a Toast. All of my button…
0
votes
3 answers

How to get the value of Edittext present in a popup window

First of all,i've checked a couple of threads asking about this very same thing,and according to my understanding it seems i need to inflate a seperate view in the same method i'm going to use .getText() and also typecaste the same,but it doesn't…
user8030578
0
votes
1 answer

Android : How can I close the file browser/file picker?

In my application, I have a connection to a server and I want to transfer a file on it. So first, I have to select a file. I open a file browser with this code : Intent intent = new…
0
votes
4 answers

How to setimage for an Imageview in a popup dialog

This is my Popup class, public class Popup { public void showDialog(Activity activity, String url){ final Dialog dialog = new Dialog(activity); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); …
user8144675
0
votes
1 answer

How to show popupWindow at underneath TextView

I want to be able to show my PopupWindow underneath my TextView. I have followed tutorials and still unable to get it to display where I want it to. I want it to show underneath the Key (TextView). My Xml Layout:
0
votes
1 answer

OnEditorActionListener is not initiated for EditText inside popup window

I have a popUp window which is called on click of a button in activity, this popup has a edittext inside it, im trying to call search function on hitting enter after typing in EditText.But the control never comes inside OnEditorActionListener i have…
Siddarth G
  • 779
  • 11
  • 34
0
votes
1 answer

Dismiss Android PopUpWindow object makes the status bar visible. How to stop this?

I am having an Activity which is fullscreen. I am making the fullscreen activity using the below code (which I am calling in onResume method) int currentApiVersion = Build.VERSION.SDK_INT; final int flags = View.SYSTEM_UI_FLAG_LAYOUT_STABLE …
lajeet
  • 437
  • 2
  • 4
  • 22