ฉันมีกล่องโต้ตอบการแจ้งเตือนมากมายในแอพของฉัน เป็นเค้าโครงเริ่มต้น แต่ฉันเพิ่มปุ่มบวกและลบในกล่องโต้ตอบ ดังนั้นปุ่มจะได้รับสีข้อความเริ่มต้นของ Android 5 (สีเขียว) ฉันพยายามเปลี่ยนมันโดยไม่ประสบความสำเร็จ ความคิดใด ๆ วิธีการเปลี่ยนสีของข้อความนั้น?
กล่องโต้ตอบที่กำหนดเองของฉัน:
public class MyCustomDialog extends AlertDialog.Builder {
    public MyCustomDialog(Context context,String title,String message) {
        super(context);
        LayoutInflater inflater = (LayoutInflater) context.getSystemService( Context.LAYOUT_INFLATER_SERVICE );
        View viewDialog = inflater.inflate(R.layout.dialog_simple, null, false);
        TextView titleTextView = (TextView)viewDialog.findViewById(R.id.title);
        titleTextView.setText(title);
        TextView messageTextView = (TextView)viewDialog.findViewById(R.id.message);
        messageTextView.setText(message);
        this.setCancelable(false);
        this.setView(viewDialog);
    } }การสร้างกล่องโต้ตอบ:
MyCustomDialog builder = new MyCustomDialog(getActivity(), "Try Again", errorMessage);
builder.setNegativeButton("OK", new DialogInterface.OnClickListener() {
                        @Override
                        public void onClick(DialogInterface dialogInterface, int i) {
                            ...
                        }
}).show();negativeButton นั้นเป็นปุ่มโต้ตอบเริ่มต้นและใช้สีเขียวเริ่มต้นจาก Android 5 Lollipop
ขอบคุณมาก

 
 