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

Adding Text to events #468

Open
FajarKhan opened this issue Aug 19, 2017 · 7 comments
Open

Adding Text to events #468

FajarKhan opened this issue Aug 19, 2017 · 7 comments

Comments

@FajarKhan
Copy link

I am able to show events with different color. Like this:

caldroidFragment.setBackgroundDrawableForDate(blue, Date);

But I also wants to add some text in date or lets say when pressing that date shows name of event in a toast message (or both). Is there anything am i missing? is this library support this?

@groomefyvik
Copy link

@FajarKhan have you tried anything ?
I am also looking for same type of customization.

@FajarKhan
Copy link
Author

FajarKhan commented Sep 8, 2017

@groomefyvik I have done it by like this:
I have created a Text View below calendar. So whenever user press a date, it will pass that date and show related text in Text View.

Code example if you have trouble to understand:

final CaldroidListener listener = new CaldroidListener() {
            @Override
            public void onSelectDate(Date date, View view) {
             //Get selected date and pass to a function where set Event Text based on that date
             SetEventText(date);
            }
        };
        caldroidFragment.setCaldroidListener(listener);

I really hope they add an event text feature soon!

@tommmt
Copy link

tommmt commented Jan 6, 2018

hi FajarKhan
how can i various event text output in the textview by the clickable dates?

Thankyou

@FajarKhan
Copy link
Author

Can you elaborate? I don't quite understand what you meant

@tommmt
Copy link

tommmt commented Jan 7, 2018

hi, sorry,
you have input the SetEventText(date); in the code above onSelectDate.
my answer is how you can show different textviews by the selected dates?
example: 1.1. 2018 event this is an event text
3.2.2018 this is the 2nd event text.
how do you do this with an array or database?
have the code for the function

Thank you very much

@FajarKhan
Copy link
Author

FajarKhan commented Jan 7, 2018 via email

@tommmt
Copy link

tommmt commented Jan 7, 2018

and how you have implement the single event in the dates?
i need only one event for a date.

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

3 participants