
How to change the textcolor in an AlertDialog?
-
Here are a few steps you can follow:
1.Add a style and name it whatever you want, in my case it's AlertDialogTheme
2.Pass in your style as the second parameter on your AlertDialog.Builder() instance. Note that if you are creating the instance from an Activity, replace the first argument with this
AlertDialog.Builder builder = new AlertDialog.Builder(requireActivity(), R.style.AlertDialogTheme);