Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create popup modal window in android

I am trying to create a popup window for android honeycomb like google docs application I followed this tutorial, I am able to get popup, but how to make it as modal window? How to create border effects like the one shown in image

Screen shot of popup window

like image 863
Sandeep Manne Avatar asked Dec 21 '25 05:12

Sandeep Manne


1 Answers

Try this.

 Dialog d = new AlertDialog.Builder(Buddies.this,AlertDialog.THEME_HOLO_LIGHT)
                    .setTitle("Create New")
                    .setNegativeButton("Cancel", null)
                    .setItems(new String[]{"Document", "SpreadSheet","",""}, new DialogInterface.OnClickListener(){
                        @Override
                        public void onClick(DialogInterface dlg, int position) 
                        {
                            if ( position == 0 )
                            {   
                            }
                            else if(position == 1){

                            }
                            else if(position == 2){


                            }

                        }
                    })
                    .create();
                    d.show();
like image 63
jainal Avatar answered Dec 22 '25 21:12

jainal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!