Alert dialog in Theme.AppCompat.DayNight

When we use Theme.AppCompat.DayNight  on android , we may want to  customise  alert dialog window background , text and buttons color .Just define  a seperate style for alert  dialog in your  style xml like below .   <style name=”CustomDialogStyle” parent=”Theme.AppCompat.DayNight.Dialog.Alert”> <!– buttons –> <item name=”colorAccent”>#00FF00</item> <!– title and text –> Read more…