the problem is that my date picker having an ugly White background behind the date picker
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
use with DatePickerDialog
Try with this
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
add this line above "return dialog".
dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
add this to your DatePickerDialog
try like this,
<style name="jehadStyle" parent="@android:style/Theme.Holo.Light.Dialog.NoActionBar">
<item name="android:textColor">@android:color/black</item>
<item name="android:background">@null</item>
</style>
hope it will help you