I have a popup implemented inside an Activity,and i'm trying to add onclicklistener to it,but it shows an error "Trying to invoke virtual method on a null object reference",but i checked the id of the edittext,which is "date_from" in…
I am using ListPopupWindow and want to add bottom shadow to it. Below is my code -
listPopupWindow = new ListPopupWindow(getApplicationContext());
listPopupWindow.setContentWidth(500);
listPopupWindow.setDropDownGravity(Gravity.CENTER |…
I have implemented popup menu in button onClick, with AppCompact theme I can get the menu overflow with empty items in menu. please help me on this
OptionMenuBtn = (ImageButton) v.findViewById(R.id.three_dot);
…
Helloo
I have simple question about popupwindow.
If click on button i want open activity as popupwindow with numberpicker . Values in numberpicker i need pass from activity. How to achieve pass values i think i should extend PopupWindow class and…
The following code does not make the popupWindow popup, most of the things I tried to make it work make it crash, some of them are commented, the rest just doesn't make the cut. Any leads?
// Popup the login
private void loginPopup(){
// Get…
I want to display an Array in a TextView for a Popup window. Only 1 item from the Array randomly. In this case I am using an ArrayList in my MainActivity and calling randomArray() to display.
It does not work on the Screen_popup.xml. But it does…
I working on android PopupWindow. In this application I create 1 custom ListView. Now I want to show PopupWindow when user click on TextView of custom ListView.
My problem is :
PopupWindow always show at last TextView even if I click on first or…
right now i am working in pop-up window, i have successfully created a pop-up window over webview. Pop-up window will show buttons like Date and Name, once i click on the date button on the pop-up, it should show the current date with month and year…
I have searched on this. However not a single solution worked.
PopupWindow is set, the only thing I would love to happen is when I click outside the popup it should get dismiss or cancel.
I want a pop like this when i click an item in the list. In the popupmenu i should not be able to increase my height above 7 ft and 0 inch and shouldnt decrease my height below 3 ft and 0 inch.
This is my activity
package…
I am developing an Android application, where I need to show a popup containing some message on application opening (Image attached for reference).
I have tried to achieve this using toast message and snack bar but could not do exact same.
Please…
Good day for all programmers.
I have a problem NullPointerException when i call the method showAtLocation of PopupWindow. As in many forums was written, this exception happens because first parameter of method showAtLocation is null. So i check it…