button - Android how to create popup window -


i need create popup window buttons , button close popup. found tutorials couldn't find out how implementation.

what want do: click action button , popup shows , when click the close button popup window must close.

there oncreate method in tuorials , didn't understand how called.

can give example of popup implementation or link tutorial? thank you!

private void showpopup(){     button btn_closepopup=(button)layout.findviewbyid(r.id.btn_closepoppup);     pwindo=new popupwindow(layout,480,500,true);     pwindo.showatlocation(layout, gravity.center, 0, 40);     chartcontainer1.addview(mchart);     btn_closepopup.setonclicklistener(new onclicklistener() {          @override         public void onclick(view arg0) {             // todo auto-generated method stub             pwindo.dismiss();         }     }); } 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -