ExtendedCalendarView
ExtendedCalendarView copied to clipboard
marking days
hi i'm new to the android developpement and i was wondering if i can mark a day by a point or a circle or change its color. If its possible, what would the code be, let's say for example the day is 14/05/2015. And thanks in advance.
days get marked automatically when there are events on that day
i finally managed to do it but can i change the red dot for somthing clearer maybe a circle, and can i change the colors of calenderView?
the dots are just images, replace whatever image you want with what you want just make sure it has the same name as the one you are replacing
how can i retrieve the date that i clicked on to store it in a variable i tried setOnDateChangeListener but it didnt work
What didn't work about it?
from what i understand setOnDateChangeListener is a methode used for a CalendarView while yours is a Calendar
Implement OnDayClickListener from ExtendedCalendarView
what i want to do is that when i click on a day a toast appears with that date, i know i'm asking for a lot but if you have some spare time maybe you could provide me with the code, i would be realy grateful this is a working code using the normal CalendarView: CalendarView view = new CalendarView(this); setContentView(view); view.setOnDateChangeListener(new OnDateChangeListener() { @Override public void onSelectedDayChange(CalendarView arg0, int year, int month, int date) { Toast.makeText(getApplicationContext(),date+ "/"+month+"/"+year,4000).show(); } });
Why are you using calendar view that is not even my library
because i cant mark the days on the normal CalendarView x_x
OK but still you are using it. Calendar view has nothing to do with this library
i dont want to use it, the code i sent you was just to show you what i want to do but using your library instead if possible
OK so implement OnDayClickListemer like I said
i don't know how to do it :/
The same exact way you would implement onSeoectedDayChanged in CalendarView