Hi, thanks to your library I've solved lots of solutions in my project! but there's a small problem in your library or maybe in my project! When I'm trying to get Current Year as the min year it didn't worked! I used Toast to see what it return and i get -1! here is my code:
new PersianDatePickerDialog(OrderActivity.this)
.setPositiveButtonString("تایید")
.setNegativeButton("لفو")
.setTodayButton("برو به امروز")
.setTodayButtonVisible(true)
.setMinYear(PersianDatePickerDialog.THIS_YEAR)
.setActionTextColor(getResources().getColor(R.color.textSecondary)));
persianDatePickerDialog.show();
Hi, thanks to your library I've solved lots of solutions in my project! but there's a small problem in your library or maybe in my project! When I'm trying to get Current Year as the min year it didn't worked! I used Toast to see what it return and i get -1! here is my code:
new PersianDatePickerDialog(OrderActivity.this) .setPositiveButtonString("تایید") .setNegativeButton("لفو") .setTodayButton("برو به امروز") .setTodayButtonVisible(true) .setMinYear(PersianDatePickerDialog.THIS_YEAR) .setActionTextColor(getResources().getColor(R.color.textSecondary))); persianDatePickerDialog.show();