3

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

1
  • That must be one of AlertDialog flavors? Commented Oct 27, 2011 at 7:06

1 Answer 1

9

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(); 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.