我想在我DateRangePicker
的默认选择范围内。我怎么能得到那个?
我现在的代码:
CalendarConstraints.Builder constraintBuilder = new CalendarConstraints.Builder();
constraintBuilder.setValidator(DateValidatorPointForward.now());
MaterialDatePicker.Builder builder = MaterialDatePicker.Builder.dateRangePicker();
builder.setCalendarConstraints(constraintBuilder.build());
final MaterialDatePicker materialDatePicker = builder.build();
imageDate.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
materialDatePicker.show(getSupportFragmentManager(), "TAG");
}
});