如何获得带有 Holo Light 主题的 DatePickerDialog?
创建时DatePickerDialog
如下:
DatePickerDialog dpd = new DatePickerDialog(new ContextThemeWrapper(this,
android.R.style.Theme_Holo_Light_Dialog_NoActionBar),
new DateListener(v), mTime.year, mTime.month, mTime.monthDay);
or with theme android.R.style.Theme_Holo_Light
or android.R.style.Theme_Holo_Light_Dialog
,我得到一个带有标准标题和标准按钮的日期选择器。我也尝试使用带有全息光父的自定义主题,但它也不起作用。它似乎适用于 theme android.R.style.Theme_Holo
,但结果是深色背景(如预期的那样),但我想要一个浅色背景。
该应用程序的 android.jar 版本为 14,该应用程序在 android 版本 3.2 的设备上运行。
我在这里看到了一个例子:http: //as400samplecode.blogspot.com/2011/10/android-datepickerdialog.html,它显示了DatePickerDialog
全息光主题,我想要的方式。我不知道为什么它不适用于我的设置。
谢谢你的帮助。