我正在尝试使用 DialogFragment 创建 TimePickerDialog,如Android 文档所示。但是,当尝试应用全息主题时,我会在执行以下操作时获得双框效果:
@Override
public Dialog onCreateDialog (Bundle savedInstanceState)
{
// Create a new instance of TimePickerDialog and return it
return new TimePickerDialog(getActivity(), android.R.style.Theme_Holo_Dialog, this, hourOfDay, minute, DateFormat.is24HourFormat(getActivity()));
}
如何在没有此问题的情况下应用全息主题?