[英]How to setText from a DialogFragment with DatePickerDialog
[英]How to remove DatePickerDialog background
您可以像这样覆盖对话框主题:
<style name="TransparentDatePickerDialogTheme" parent="AlertDialog.AppCompat">
<item name="android:windowBackground">@android:color/transparent</item>
</style>
然后像这样应用主题
DatePickerDialog dpd = new DatePickerDialog(RegisterActivity.this, R.style.TransparentDatePickerDialogTheme, date,
myCalendar.get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),
myCalendar.get(Calendar.DAY_OF_MONTH));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.