title: calendar day/month/week view in android
body: <p>I need an android calendar view like attached photo. I already tried with this library
      <a href="https://github.com/alamkanak/Android-Week-View" rel="nofollow noreferrer">https://github.com/alamkanak/Android-Week-View</a> for calendar view. 
      this one is fixed static event in calendar adding only.
      I could not add dynamically event in this library calendar view.
      can anybody suggest any custom library in android.</p>
  
  <p><img src="https://i.stack.imgur.com/5G8Fo.png" alt="enter image description here"></p>
  
  <p>sample Android-Week-View for calendar view library code :</p>
  
  <p>what I have tried in this library :</p>
  
  <p>This is code , statically adding event in calendar view. when run this example, I can able to see the event at particular date in calendar view.</p>
  
  <pre><code> @Override
   public List&lt;WeekViewEvent&gt; onMonthChange(int newYear, int newMonth) {
  
    // Populate the week view with some events.
      List&lt;WeekViewEvent&gt; events = new ArrayList&lt;WeekViewEvent&gt;();
  
      Calendar startTime = Calendar.getInstance();
      startTime.set(Calendar.HOUR_OF_DAY, 3);
      startTime.set(Calendar.MINUTE, 0);
      startTime.set(Calendar.MONTH, newMonth-1);
      startTime.set(Calendar.YEAR, newYear);
      Calendar endTime = (Calendar) startTime.clone();
      endTime.add(Calendar.HOUR, 1);
      endTime.set(Calendar.MONTH, newMonth-1);
      WeekViewEvent event = new    WeekViewEvent(1, getEventTitle(startTime),
      startTime, endTime);
      event.setColor(getResources().getColor(R.color.event_color_01));
      events.add(event);
        return events;
      }
      when i click this event on calendar page, its showing that event
      time and date in toast.
       @Override
      public void onEventClick(WeekViewEvent event, RectF eventRect) {
      Toast.makeText(MainActivity.this, "Clicked " 
      + event.getName(), Toast.LENGTH_SHORT).show();
      Log.v("heal", "Clicked "+ event.getName()) ;
     }
  </code></pre>
  
  <p>Note :</p>
  
  <ul>
  <li>I need to add the same event in this calendar view dynamically.</li>
  <li>I don't know how to add this event.</li>
  <li>I just add one event inside <code>onCreate()</code>. But, that event is not showing in  calendar view  but, values are passing to that constructor. Can anybody help me to come out this.</li>
  </ul>