int divierId = dialogActivity.getContext().getResources().getIdentifier("android:id/titleDivider",null, null); View divider = dialogActivity.findViewById(divierId); divider.setBackgroundColor(0XFF5161BC);