ユーザーが希望以外の日付を選択できないようにする必要があるプロジェクトに取り組んでいます。
いくつかの記事とSO投稿を読んで、動作するはずの次のことを試しました
com.wdullaer.materialdatetimepicker.date.DatePickerDialog dpd = newInstance(
ActivityClaimOffers.this,
now.get(Calendar.YEAR),
now.get(Calendar.MONTH),
now.get(Calendar.DAY_OF_MONTH)
);
dpd.setMinDate(calendar);
dpd.setMaxDate(calendar);
しかし、カスタム日付をカレンダー オブジェクトとして渡す方法がわかりませんでした。setMinDate() と setMaxDate() の両方が Calendar をパラメーターとして受け取るため