michaldrabik / classicmaterialtimepicker

Classic Material Time Picker
57 stars 10 forks source link

Add ability to set custom years range to view element #5

Open VitaliyBelyaev opened 5 years ago

VitaliyBelyaev commented 5 years ago

First of all thank you for this lib, it's pretty awesome!

Now we can set custom years range if using CmtpDateDialogFragment, but if we want use CmtpDatePickerView in custom layout or custom dialog(bottomSheet) we can not set years range, because method setCustomYearRange() is internal.

Maybe we should add some configuration methods to CmtpDatePickerView or simple make method setCustomYearRange() public?

victorlsn commented 4 years ago

Hey @VitaliyBelyaev.

Sorry, haven't been helping with the lib for some time. But today I've added some new methods in the lib (including your request) and as soon as @michaldrabik merges my pull request you'll be able to do what you want.