Is there any way to change Appcompat dialog title and title divider color? I don't want to use holo light blue color.
I founded this link but is for holo light and don't work with appcompat.
Thanks in advance.
Is there any way to change Appcompat dialog title and title divider color? I don't want to use holo light blue color.
I founded this link but is for holo light and don't work with appcompat.
Thanks in advance.
The only way to change the
Dialog
title divider color is by subclassingDialog
and usingResources.getIdentifier
to find the title dividerView
. After that all you need is a call toView.setBackgroundColor
. Since this is the only way to customize the title divider, you may as well go ahead and use the same method to customize the title color as well.But as far as why you can't get the answer you linked to working for you, it's hard to say. You don't include any code or anything you've tried, so that makes it tricky to pinpoint why you aren't receiving the results you want.
Here's an example of changing the title color and the title divider color:
Implementation
Using a
DialogFragment
withAlertDialog.Builder
Implementation
Results