DatePicker having a background

前端 未结 4 1986
执笔经年
执笔经年 2021-02-20 06:15

the problem is that my date picker having an ugly White background behind the date picker

\"White

相关标签:
4条回答
  • 2021-02-20 06:16
    dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
    

    use with DatePickerDialog

    0 讨论(0)
  • 2021-02-20 06:16

    Try with this

    dialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
    

    add this line above "return dialog".

    0 讨论(0)
  • dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
    

    add this to your DatePickerDialog

    0 讨论(0)
  • 2021-02-20 06:38

    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

    0 讨论(0)
提交回复
热议问题