0

In my app there is a TimePicker on PreferenceFragment. Implementation of it like this: https://stackoverflow.com/a/5533295/3499878

So my result in image:

enter image description here

I want to change gray color(#555555) to more light color.

In my style I used:

<style name="MyTheme" parent="@style/Theme.AppCompat">
    <item name="android:alertDialogTheme">@style/Theme.MyDialog</item>
    <item name="colorAccent">#2962ff</item>
    <item name="colorPrimary">#2962ff</item>
</style>

<style name="Theme.MyDialog" parent="@style/Theme.AppCompat.Light.Dialog">
        <item name="colorPrimary">@color/white</item>
        <item name="colorPrimaryDark">@color/white</item>
        <item name="colorAccent">@color/white</item>
    </style>

So colorPrimary, colorPrimaryDark as in MyTheme, as in Theme.Dialog not work for it purpose ColorPrimary in Theme.MyDialog for text header ("StartTime"), and button "Cancel", "OK". ColorAccent in MyTheme used only for selected time in circle. How to resolve it problem?

Community
  • 1
  • 1
user3499878
  • 1,023
  • 2
  • 10
  • 15

0 Answers0