I changed the color of an AlertDialog title using this command
alert.setTitle( Html.fromHtml("<font color='#FF7F27'>Set IP Address</font>"));
But I want to change the color of the line that appear under the title; how can I do that ?
Note: I don't want to use a custom layout
This will set the color for the title, icon, and divider. Bound to change with any new Android version.
Remember to call dialog.show() before calling this method.
Instead of using divider in dialog, use the view in the custom layout and set the layout as custom layout in dialog.
custom_popup.xml:
activity.java: