Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

marking days #91

Open
moutiahub opened this issue May 14, 2015 · 15 comments
Open

marking days #91

moutiahub opened this issue May 14, 2015 · 15 comments

Comments

@moutiahub
Copy link

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.

@tyczj
Copy link
Owner

tyczj commented May 14, 2015

days get marked automatically when there are events on that day

@moutiahub
Copy link
Author

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?

@tyczj
Copy link
Owner

tyczj commented May 21, 2015

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

@moutiahub
Copy link
Author

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

@tyczj
Copy link
Owner

tyczj commented May 21, 2015

What didn't work about it?

@moutiahub
Copy link
Author

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

@tyczj
Copy link
Owner

tyczj commented May 21, 2015

Implement OnDayClickListener from ExtendedCalendarView

@moutiahub
Copy link
Author

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

@tyczj
Copy link
Owner

tyczj commented May 22, 2015

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

@moutiahub
Copy link
Author

because i cant mark the days on the normal CalendarView x_x

@tyczj
Copy link
Owner

tyczj commented May 22, 2015

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

@moutiahub
Copy link
Author

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

@tyczj
Copy link
Owner

tyczj commented May 22, 2015

OK so implement OnDayClickListemer like I said

@moutiahub
Copy link
Author

i don't know how to do it :/

@tyczj
Copy link
Owner

tyczj commented May 22, 2015

The same exact way you would implement onSeoectedDayChanged in CalendarView

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants