title: Change color of calendar dates android
body: <p>I am trying to color the date selected in my calendarview. 
  I have tried</p>
  
  <pre class="lang-java prettyprint-override"><code>String todayDate = (mDay + "/" + mMonth + "/" + mYear);
  
  Toast.makeText(this, "TODAYS DATE" + todayDate, LENGTH_SHORT).show();
  
  Cursor cursor = myDatabase.rawQuery("select * from " + Calms.DATABASE_FLARE_TABLE, null);
  
  //calendarView.setDateTextAppearance(Integer.parseInt("@+color/orange"));
  
  for(int count=1; count&lt;=cursor.getCount(); count++)
  {
      cursor.moveToNext();
      String savedDate = cursor.getString(2);
  
      //calendarView.setDateTextAppearance(getResources().getColor(R.color.orange));
      //calendarView.setDateTextAppearance(R.color.color);
  
      Toast.makeText(this, "DATE IN DB: "+ savedDate, LENGTH_SHORT).show();
      Toast.makeText(this, "next", LENGTH_SHORT).show();
  
      if (savedDate.equals(todayDate))
      {
          Toast.makeText(this, "IN IF!!", LENGTH_SHORT).show();
          //calendarView.setDateTextAppearance(Integer.parseInt("@color/orange"));
  
          calendarView.setDateTextAppearance(getResources().getColor(R.color.orange));
      }
  </code></pre>
  
  <p>I have also tried context.getRes.....</p>
  
  <p>Nothing seems to work. The colour of the date never changes. </p>
  
  <p>Would anyone be able to help?
  Thanks </p>