AlertDialog を設定するで基本的なAlertDialogを作成しました。更にボタンの代わりに画像や追加テキストを入れたいという場合を考えてみます。 AlertDialogを生成するFragmentの中で、 //package your.app.name; import androidx.appcompat.app.AppCompatActivity; import android.annotation.SuppressLint; import android.os.Bundle; import android.app.AlertDialog; import android.app.Dialog; import androidx.fragment.app.DialogFragment; import androidx.fragment.app.FragmentManager; im