更改 support 包 AlertDialog Button 颜色

Button positionButton = mDialog.getButton(AlertDialog.BUTTON_POSITIVE);
            positionButton.setTextColor(ContextCompat.getColor(NewPaymentActivity.this, R.color.red_tips));
            Button negativeButton = mDialog.getButton(AlertDialog.BUTTON_NEGATIVE);
            negativeButton.setTextColor(ContextCompat.getColor(NewPaymentActivity.this, R.color.gray9));

或者

    
    

    

    

    


 

你可能感兴趣的:(更改 support 包 AlertDialog Button 颜色)