DatePickerTimeline icon indicating copy to clipboard operation
DatePickerTimeline copied to clipboard

[FEATURE] Select current day

Open Duna opened this issue 6 years ago • 6 comments

Possibility to set x day to be selected at init time

Duna avatar May 19 '19 15:05 Duna

That can't be done right now, I will add this feature soon.

iamvivekkaushik avatar May 19 '19 16:05 iamvivekkaushik

Many thanks for the great library, would love this feature in the future update

aniq-pirzada avatar May 27 '19 23:05 aniq-pirzada

Please let me know if this feature have been included. Thanks.

Arkar009 avatar Aug 27 '19 06:08 Arkar009

Sorry, unfortunately, I didn't get time to work on the library will update it within a few days

iamvivekkaushik avatar Aug 27 '19 06:08 iamvivekkaushik

@Arkar009 I tried to implement this feature in my fork with some success, however, the underlying architecture of the library makes my additions very error prone so I didn't bother to even submit a pull request. setSelectedDate works but scrolling to the selected date was very difficult to implement because a reference to the ViewHolder at that adapter position is not kept. I had to hack my way around most things which presents a very ugly implementations.

If you are interested, you can check it out from my fork. I will convert to Kotlin and re design it and submit a pull request over the next weekend because Kotlin Type safety is a blessing to be embraced and i find this library very elegant and useful.

rafsanjani avatar Nov 10 '19 09:11 rafsanjani

@iamvivekkaushik any updates to select default date?

nmssalman avatar Oct 22 '21 22:10 nmssalman