code-troopers / android-betterpickers

[NO LONGER MAINTAINED] Android library for better Picker DialogFragments
2.67k stars 564 forks source link

CalendarDatePicker does not fit on small screen sizes #56

Open dirkam opened 10 years ago

dirkam commented 10 years ago

Hi,

It seems that Calendar picker dialog does not fit on small screen sizes (320x240) and you can't tap on Done because of this (it's not visible). It affects portrait and landscape orientation as well.

Zs

Angelmmiguel commented 10 years ago

I have the same issue with the TimePicker

WebnetMobile commented 10 years ago

Exactly the same bug report. Any plans to address this? some people still use such devices

Angelmmiguel commented 10 years ago

I resolve this error to switch to the old timePickers when the device has a small screan. I hope this works for you :)

lesmuc commented 10 years ago

To get the done button on screen you can also set the dialog frame to fullscreen...

CalendarDatePickerDialog calendarDatePickerDialog = CalendarDatePickerDialog.newInstance(TripFormActivity.this, year, month, day);
calendarDatePickerDialog.setStyle(SherlockDialogFragment.STYLE_NORMAL, android.R.style.Theme_Black_NoTitleBar_Fullscreen);
calendarDatePickerDialog.setFirstDayOfWeek(2);
calendarDatePickerDialog.show(fm, TAG_DATE_PICKER_END);