Skip to content

Instantly share code, notes, and snippets.

@codingwithsara
Created September 8, 2019 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codingwithsara/89d91fceb7f5426f0aa83c502ea91789 to your computer and use it in GitHub Desktop.
Save codingwithsara/89d91fceb7f5426f0aa83c502ea91789 to your computer and use it in GitHub Desktop.
AlertDialog Customize 2
new AlertDialog.Builder(this)
.setTitle("タイトル")
.setMessage("ここにメッセージを入力します。ここにメッセージを入力します。ここにメッセージを入力します。")
.setPositiveButton("OK", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// OK が押された時の処理を書く
}
})
.show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment