Skip to content

Instantly share code, notes, and snippets.

@androidcodehunter
Created November 7, 2016 08:33

Revisions

  1. androidcodehunter created this gist Nov 7, 2016.
    10 changes: 10 additions & 0 deletions Customizing Dialog Theme
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    <!--
    android:colorAccent will affect your text colors of negative or positive buttons.
    android:textColor will affect your title text color of dialog.
    android:textColorPrimary will affect your message color of dialog.-->
    <style name="GGDialog" parent="Theme.AppCompat.Light.Dialog.Alert">
    <item name="android:textColor">@color/theme_blue</item>
    <item name="android:background">@color/white</item>
    <item name="android:textColorPrimary">@color/theme_red</item>
    <item name="colorAccent">@color/theme_red</item>
    </style>