I´m tying to change the divider color of the DatePicker Dialog.
I create the style:
<style name="dialog_custom" parent="@android:style/Widget.DatePicker">
<item name="android:divider">@drawable/dialog_divider</item>
</style>
And create the drawable like this
And the result is this
The divider no change color and the dialog take the content size..
This is my solution to change divider colors in NumberPickers, TimePickers, DatePickers and the TimePickerDialog. For DatePickerDialog you can call DatePickerDialog.getDatePicker()
}
You can do this using theme. Check accepted answer on this question. i think it will helpful to you.
UPDATES
Expand
res
folder in your application and expandvalues
folder. Then createthemes.xml
file onvalues
folder. then replace all code inthemes.xml
file with below code.Then open your
AndroidManifest.xml
file. and findandroid:theme
and replcae withandroid:theme="@style/MYTheme"