badoualy / datepicker-timeline

An infinite scrolling timeline to pick a date
MIT License
464 stars 71 forks source link

Update MonthView.java #1

Closed devDroidRaul closed 7 years ago

devDroidRaul commented 7 years ago

need to show year. it gets difficult to identify which year is this month referring to when we do horizontal scroll on the recyclerview. we can have the month view this view . MAY 2017

badoualy commented 7 years ago

Totally agree! I'll look into it and make it so that we can enable it or not :)

badoualy commented 7 years ago

Sorry for the delay. I think keeping the last 2 digit of the year is enough and it will save some space and avoid having too much information. What do you think?

devDroidRaul commented 7 years ago

hey, two digit is also fine. just that , there has to be a way to identify corresponding year. if we go with 2 digits year. how do u plan to design the month view May-17, May17. Four digit would be May 2017

i think design wise four digit year looks better. What are your thoughts?

badoualy commented 7 years ago

I was thinking either Mar 17 or Mar 17

my concern is that 4 digits you'll have too much content on the view

badoualy commented 7 years ago

So, in the xml you can use:

        <attr name="mti_yearDigitCount" format="integer"/>
        <attr name="mti_yearOnNewLine" format="boolean"/>

or via code the same methods to configure it as you want, every should be happy :)