PopupWindow shows and works perfectly in AVD but not on a real device.
This is the function that is supposed to create the popup:
http://pastebin.com/jabHVp2c
What I tried:
I made sure that onClick is being called, and it is.
I made sure no other…
I have added following code to display a Popover on my spinner view. The code uses custom PopOver which extends PopupWindow :
@Override
public void onStart() {
super.onStart();
new Handler().postDelayed(new Runnable() {
…
I have a FragmentA. When I click on a button in FragmentA I go to FragmentB. In FragmentB I have a PopupWindow. The PopupWindow have a ViewPager with two pages.
I took help from this code - Emojicon
I have 2 separate classes, View1 and View2, for…
i have a fragment with a button. The button is pressed and if the user credentials entered match a valid user(the input fields ara being checked requests to rest api) a popupwindow is displayed with a spinner, a textview and an editext.
in volley…
I am trying to style the items of my popup so they look like a list of buttons below eachother. The only problem is that I can't get to change anything of the popup items. I have tried to set a global popupMenuStyle in my app style but that didn't…
I'm loading an image using Universal Image Loader library, and I got this Exception. I could not understand the cause of this exception. Can anyone Help? Thanks in advance.
E/j v .lang.Illegal ArgumentException: view must not be null
E/j v .l…
I have my popup windows with "extends activity". I searched and I knew that I cannot extent twice.
So, How can I put the content in a pop up with the FragmentActivity?
Edit:
this is the main activity
public class Kulintang extends…
I have some example Emoji Keyboard. How to create popup view look like emojiconView in softkeyboard
I have another project. I create a popup same like in Dot dash Keyboard
How to implements a emoji proper view in softkeyboard.
See :
But my view…
I have following code in my Activity:-
public void showPopup(View view) {
View popupView = getLayoutInflater().inflate(R.layout.popup_layout, null);
PopupWindow popupWindow = new PopupWindow(popupView,
…
I use PopupWindow in my project.
And I can not dismiss it when touch display. I tried:
@Override
public void onResume() {
super.onResume();
new Handler().postDelayed(new Runnable() {
@Override
public void…
In my app I am uploading an image to a server,a notification progress bar is there to show upload progress.when a user click on the notification ,a popup window will show to cancel or continue upload.All these are working fine.When I click back…
I'm trying to create a pop up that will notify the user if they got the correct answer, the user can then click the continue button to the next question. The pic below from the Duolingo app shows exactly what I want.
What class can be used to do…
In my application, I want to display the popup menu, I was tried but getting an run time error and am unable to fix this error.In my application I don't want to use an ActionBar, Am attaching the code below have a look on it
HomeScreen.class
public…
App crashes when using Built-In speech to text dialog:
Here is how i'm opening the PopupWindow:
popupwindow = new PopupWindow(MyActivity.this);
.
.
.
popupwindow.showAtLocation(view, Gravity.CENTER, 0, 0);
and here is the Logcat:
05-04…