[英]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.