Search code examples
androidcolorsstylesthemes

android Theme.Holo.Dialog changing blue lines to orange


Default color for lines on Android theme Theme.Holo.Dialog are blue. I'd like to know how to change this to any other color. Orange in my case.

I can change text or background etc.. overriding the theme with a custom style.xml

   <style name="Theme.MyTheme" parent="@android:style/Theme.Holo.Dialog" >
        <item name="android:textColor">@color/coloroscuro</item>
        <item name="android:textColorHint">@color/coloroscuro</item>
   </style>

but I don't know which property manages the color of the lines.

I mean the blue lines that the theme has by default like the ones shown on this other question:

How to Android Holo Theme style dialog box buttons


Solution

  • There is a library which does exactly what you need - easy styling of dialogs in Holo theme:

    https://github.com/inmite/android-styled-dialogs