I am not able to filter listview which is inside a Popupwindow.
It fails with an exception
android.view.WindowManager$BadTokenException: Unable to add window -- token android.view.ViewRootImpl$W@150769 is not valid; is your activity running?
at…
I have been using android dialog builder by inflating layouts in it. Everything is working fine and perfect. But now, I want to change the way of opening of the dialog builder. I want open the dialog builder like the swipe card. .i.e. From left to…
I want to show a Custom Listview inside a popup window using service class. This list is fetching data from database and working fine in an activity but not in popup window. Below is my code. Any help will be appreciated.
This is my Service…
I wonder what kind of approach available for the transfer of the variable generated from class of fragment or popup window to activity provided that the fragment or popup window class is separated from activity.
Any code example of elegant approach…
I am trying to create a filter function, I have a pop up window in my Search activity it displays list of switches where the user can turn some of them off and on..
I got the pop up to display fine but whenever I tick any switch the value is not…
I want to copy the text content in item of a RecyclerView, so I set a OnLongClickListener on the TextView, while it will show a PopupWindow that contain a copy button.
My problem is that while I am still touching the RecycleView when the PopupWindow…
I have a PopupWindow and it is setFocusable(false), I want to dismiss it when touch outside, and it is already setOutsideTouchable(true), but with the setFocusable(false) it doesn't work, how can I solve this? Thanks in advance.
All the properties…
I am trying to show popup on activity on create() method but nothing seems to be happen .. No exception no popup.
Following is code
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
…
In my android app I have a menu option which works when the device has dedicated hardware menu option. for another device I don't have dedicated Menu button so I tried to add a button and on click of that a popup will display the menu, The popup is…
I am trying to replicate this layout of this view (not necessarily the rounded rectangles of the editText boxes, just the widths/layout):
The dimmed background color, the editText's widths. However, I'm getting this:
No transparent background…
Here is some brief codes of my project, in which I'd like to display a Unity3D model to do something.
public class MainActivity extends FragmentActivity{
protected UnityPlayer mUnityPlayer;
@Override
protected void onCreate(Bundle…
As I am developing my first Android app, recording mobile screen using this tutorial. Now I want to display my recorded video like following Pop-up window layout with share functionality of the AZ Screen Recorder in my android app.
How to implement…
I have a AutoCompleteTextView at the top of my screen and have used the default List that is associated with the AutoCompleteTextView to display my data. I have a bottom navigation bar, at the bottom of my screen, which is visible even when the…
Below is my code.
I had gone through some links but not found the solution.I want to know whether user has completed the ACTION_VIEW or not or simply pressed the back button.
Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse("url"));
…
I just want to know if there's a way of applying PopupWindow.setWindowLayoutType() on API < 23. Based on the documentation, it can only be use on API 23 and above. But is there a hack or workaround?
I have a custom toast. I want this toast to…