Why I Am Getting Extra Header In Datepickerdialog?
I am getting an extra header for DatePickerDialog as shown in the below snap shot, i don want that, What i am doing wrong here?I Need the DatePickerDialog without that header, plea
Solution 1:
The following line of code sets your dialog title value:
fromDatePickerDialog.getDatePicker().setMaxDate(d.getTime());
In order to clear this extra header you need to call setTitle
just after that.
fromDatePickerDialog.getDatePicker().setMaxDate(d.getTime());
fromDatePickerDialog.setTitle(null);
As a result you'll have dialog with max date and no title displayed.
Solution 2:
Use anyone of below 2 method, it will help you.
1) Try to set Title Emopty like
fromDatePickerDialog.setTitle("");
2) Try to set no title for date picker like
fromDatePickerDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
Post a Comment for "Why I Am Getting Extra Header In Datepickerdialog?"