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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -