Android: Popup And Button To Dismiss Doesnt Work
I have: popUp.xml Copy
it is looking for the button view inside the main layout instead of looking inside the popup layout. So probably ok_button is null.
Try to move out the inflate call from the constructor, like this:
Viewv= inflater.inflate(R.layout.popup,null, false);
finalPopupWindowpw=newPopupWindow(v,300,400,true);
and then:
ok_button = (Button) v.findViewById(R.id.ok_button);
Post a Comment for "Android: Popup And Button To Dismiss Doesnt Work"