像對話框的標題白的觀點如何刪除DialogFragment
未來的DatePickerDialog
顯示DialogFragment
這裏是白的觀點標題Android的日期選擇參考我DialogFragment代碼:
public class DatePickerFrgDialog extends DialogFragment implements DatePickerDialog.OnDateSetListener {
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
// Use the current date as the default date in the picker
final Calendar c = Calendar.getInstance();
int year = c.get(Calendar.YEAR);
int month = c.get(Calendar.MONTH);
int day = c.get(Calendar.DAY_OF_MONTH);
DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, year, month, day);
// Create a new instance of DatePickerFrgDialog and return it
return dialog;
}
@Override
public void onDateSet(DatePicker view, int year, int month, int day) {
}
如果任何人遇到此問題,請分享解決方案。
嘗試此'mProjectsDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);' –
都能跟得上。沒有工作 –