Skip to content

Instantly share code, notes, and snippets.

@IAmKio
Created June 11, 2013 12:43
Show Gist options
  • Save IAmKio/5756507 to your computer and use it in GitHub Desktop.
Save IAmKio/5756507 to your computer and use it in GitHub Desktop.
Android Dialog
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 for free to join this conversation on GitHub. Already have an account? Sign in to comment