I would like to change the color of the positive button. How can I do this?
AlerDialog:
fun onSomeClicked(view: View) { val dialog: AlertDialog.Builder = AlertDialog.Builder(view.context) dialog.setTitle("SomeText") .setMessage("SomeMessage") .setPositiveButton(view.context.getString(R.string.ok_dialog)) { p0, p1 -> onCheckPassword(view) } .setNegativeButton(context.getString(R.string.cancel_dialog)) { p0, p1 -> } .create() .show() } Thanks! (My question is in kotlin, with do in kotlin.)