title: Caldroid disable specific dates
body: <p>I searched a lot of datepicker and calendarview libraries to disable specific dates. Caldroid seems to have option to disable dates but it can only disable dates corresponding to current date. But I want to disable particular dates like 10, 18, 21, etc. there is no option for that. So it would be a great help if anyone can mention how to do it in caldroid or in any other library. What I did:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>public class MainActivity extends AppCompatActivity{
  
      @Override
      protected void onCreate(@Nullable Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
      }
  
      public void change(View v){
  
          CaldroidFragment mCaldroidFragment = new CaldroidFragment();
          Bundle args = new Bundle();
          args.putInt( CaldroidFragment.START_DAY_OF_WEEK, CaldroidFragment.MONDAY );
          mCaldroidFragment.setArguments( args );
  
          ArrayList&lt;String&gt; disabledDates = new ArrayList&lt;String&gt;();
          disabledDates.add("10");
          disabledDates.add("20");
          disabledDates.add("30");
          ArrayList&lt;Date&gt; dd = new ArrayList&lt;Date&gt;();
  
          for(int i=0; i&lt;disabledDates.size(); i++){
              Calendar cal = Calendar.getInstance();
              cal.add(Calendar.DAY_OF_WEEK, i);
              dd.add(cal.getTime());
          }
  
  
          mCaldroidFragment.setDisableDates(dd);
         getSupportFragmentManager().beginTransaction().replace( R.id.frame , mCaldroidFragment ).commit();
  
  
  
      }
  
  }</code></pre>
  </div>
  </div>
  </p>