I\'m trying to create a custom dialog, basically I\'m using DatePickerDialog.THEME_HOLO_DARK
but I want to change the \"divider\" color and the text color.
Please use the below code
Here, dialog is an object of DatePickerDialog.
int dividerId = dialog.getContext().getResources().getIdentifier
("android:id/titleDivider", null, null);
View divider = dialog.findViewById(dividerId);
divider.setBackgroundColor(getResources().getColor(R.color.red));
int textViewId = dialog.getContext().getResources().getIdentifier
("android:id/alertTitle", null, null);
TextView tv = (TextView) dialog.findViewById(textViewId);
tv.setTextColor(getResources().getColor(R.color.red));