How do I dismiss PopupWindow when I tap outside?
This is my code:
private void initiatePopupWindow(View viewButton) {
LayoutInflater inflater = (LayoutInflater) MainActivity.this
…
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:
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…
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() {
…
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…
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.
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…
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.
…
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…
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…
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…
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);
…
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:
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…
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
…