ExtendedCalendarView icon indicating copy to clipboard operation
ExtendedCalendarView copied to clipboard

marking days

Open moutiahub opened this issue 9 years ago • 15 comments

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.

moutiahub avatar May 14 '15 16:05 moutiahub

days get marked automatically when there are events on that day

tyczj avatar May 14 '15 17:05 tyczj

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?

moutiahub avatar May 21 '15 19:05 moutiahub

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

tyczj avatar May 21 '15 20:05 tyczj

how can i retrieve the date that i clicked on to store it in a variable i tried setOnDateChangeListener but it didnt work

moutiahub avatar May 21 '15 22:05 moutiahub

What didn't work about it?

tyczj avatar May 21 '15 22:05 tyczj

from what i understand setOnDateChangeListener is a methode used for a CalendarView while yours is a Calendar

moutiahub avatar May 21 '15 22:05 moutiahub

Implement OnDayClickListener from ExtendedCalendarView

tyczj avatar May 21 '15 23:05 tyczj

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(); } });

moutiahub avatar May 22 '15 00:05 moutiahub

Why are you using calendar view that is not even my library

tyczj avatar May 22 '15 00:05 tyczj

because i cant mark the days on the normal CalendarView x_x

moutiahub avatar May 22 '15 00:05 moutiahub

OK but still you are using it. Calendar view has nothing to do with this library

tyczj avatar May 22 '15 01:05 tyczj

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

moutiahub avatar May 22 '15 01:05 moutiahub

OK so implement OnDayClickListemer like I said

tyczj avatar May 22 '15 01:05 tyczj

i don't know how to do it :/

moutiahub avatar May 22 '15 01:05 moutiahub

The same exact way you would implement onSeoectedDayChanged in CalendarView

tyczj avatar May 22 '15 01:05 tyczj