How to change the color of the buttons in AlertDialog?
In the markup dialogue ask
android:background="@color/background_window" everything except the buttons is highlighted in gray
I try this:
dialog.getButton(DialogInterface.BUTTON_POSITIVE).setBackgroundColor(ContextCompat.getColor(MyApplication.getAppContext(), R.color.background_window)); the application crashes when you open a dialog
Thank you in advance


