i'm using better pickers library (here's link) select date in application. want set limits picker such max date today's date , minimum date not more 1 year ago. here's code display calendardatepickerdialogfragment dialog;
private void showdatedialog() { fragmentmanager fm = getsupportfragmentmanager(); datetime = datetime.now(); calendardatepickerdialogfragment calendardatepickerdialogfragment = calendardatepickerdialogfragment .newinstance(this, now.getyear(), now.getmonthofyear() - 1, now.getdayofmonth()); calendardatepickerdialogfragment.show(fm, frag_tag_date_picker); }
Comments
Post a Comment