I know I can use:
myPopup.showAtLocation(layout, Gravity.NO_GRAVITY, x, y);
// OR
myPopup.showAtLocation(layout, Gravity.TOP|Gravity.LEFT, x, y);
To open a PopupWindow that's drawn from [x, y] as the Top-Left of the PopupWindow, drawn towards to…
I have EditText and Button in popup-window.am show popup-window in bottom of the screen. When i try to enter details in EditText, the popup-window hide behind the soft-keyboard,not able to see the EditText and not able to solve the issue.Can any one…
I'm having a FragmentActivity that consists of a lot of elements that causes a pop-up window shown on every item click regarding to that item, I'm creating the popup the regular way:
LayoutInflater inflater;
View layout;
inflater = (LayoutInflater)…
I want to change position of PopupWindow dynamically.
Have used the following method:
public void showAtLocation (View parent, int gravity, int x, int y)
But sometime PopupWindow shows out of screen. So which relative parameter should I use for…
I have a ListView, each row has a TextView, upon clicking on the row, I want a PopupWindow with an EditText to pop under the row. The text entered by the user should be then displayed in the TextView of the row.
When I click on a row the TextView…
I have a popup window in android
Any body can say me the X and Y positon mean in an android screen.Is it refer to the screen window or refer to the button poping the window. This is My code
int[] location = new int[2];
Object…
I have a PopUpWindow which needs to load as soon as the Activity starts, which uses the DisplayMetrics of the screen, as well as other things. However, I am getting the error "Unable to add window -- token null is not valid; is your activity…
I have a PopUpWindow which needs to load as soon as the Activity starts, which uses the DisplayMetrics of the screen, as well as other things. However, I am getting the error "Unable to add window -- token null is not valid; is your activity…
I have a MapFragment in which, upon clicking a marker I'm showing a PopupWindow. I can't seem to get it to receive TouchEvents though.
Here's what I've got atm:
mPopupWindow.getContentView().setOnClickListener(new OnClickListener()
{
…
I'm trying to create a popup window similar to programmatically. Unfortunately I couldn't figure out any helpful resource so far for creating a similar popup.
I'm using the popup window to show the calendar view ,while showing the popup window it collapses the whole view ,i.e it is disturbing the view next to it ,it doesn't popup like Spinner(spinner adapter view). what may be problem , here my code…
I would like to use the popup window for my UI activity.
Actually, I have a button in my main activity page which on clicked should open like a dialog window.
In that dialogue window, I want to have two other buttons in it which on clicked should…
I have a dialog fragment that shows while my application is doing a task.
I cancel the task that is being executed on the activities onDestroy() method is called.
If the user rotates while the popup is showing, android destroys the activity and then…