Skip to content

a workaround for not adding first and last month in xml#18

Open
SherifMakhlouf wants to merge 2 commits intotraex:masterfrom
SherifMakhlouf:master
Open

a workaround for not adding first and last month in xml#18
SherifMakhlouf wants to merge 2 commits intotraex:masterfrom
SherifMakhlouf:master

Conversation

@SherifMakhlouf
Copy link

Setting default last month like this

lastMonth = typedArray.getInt(R.styleable.DayPickerView_lastMonth, (calendar.get(Calendar.MONTH) - 1) % MONTHS_IN_YEAR);

usually ends up with empty listView, as the getCount will return 0. So I setting it to last month in year may be a good work around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant