メインカテゴリーを選択しなおす
Android Studio kotlinのメソッドパーツ化 今回はアラートダイアログです アラートダイアログはいろんな形状にカスタマイズできますが 私が一番よく使うシンプルなものにします AlertDialog.Builder(context) .setTitle("タイトル") .setMessage("メッセージ") .setPositiveButton("Yes", { dialog, which -> //ポジティブボタンを押した時の処理 }) .setNegativeButton("No", { dialog, which -> //ネガティブボタンを押した時の処理 }) .sho…