vikramkakkar / SublimePicker

A material-styled android view that provisions picking of a date, time & recurrence option, all from a single user-interface.
Apache License 2.0
2.31k stars 407 forks source link

Date Picker not working in Landscape Mode #27

Open Praveen2106 opened 8 years ago

Praveen2106 commented 8 years ago

Hi, Date picker is not working in landscape mode. Check the below screen-shot. img-20160407-wa0005

vikramkakkar commented 8 years ago

Hi Praveen,

Could you please provide some info about your set up?

Thanks a lot for bringing this forward. I'll sort this out asap.

vikramkakkar commented 8 years ago

Looks like I've isolated the problem here. The issue roots from the minimum height requirements for the TimePicker:

If this minimum height requirement is not met, the GridLayout used to create TimePicker misbehaves and displays nothing.

I have tried using a different layout container and that helps in the sense that the UI does not disappear - even with low available height. But, the decision buttons (OK & CANCEL) start getting clipped as the available height decreases.

I am open to suggestions. Let me know how you would tackle this.

abaker commented 7 years ago

While playing with the sample app I noticed that this issue only occurs when 'DatePicker' is not activated