CosmoCalendar icon indicating copy to clipboard operation
CosmoCalendar copied to clipboard

date click event

Open xmy1231 opened this issue 8 years ago • 4 comments

Hi, I have a problem that is not so clear that click events can't get the full date.

xmy1231 avatar Nov 14 '17 10:11 xmy1231

@Jacky-Xu I was stuck to so I tried this:

                 calendarView.setSelectionManager(new BaseSelectionManager() {
                    @Override
                    public void toggleDay(@NonNull Day day) {
                        Toast.makeText(getContext(), day.toString(), Toast.LENGTH_SHORT).show();
                    }

                    @Override
                    public boolean isDaySelected(@NonNull Day day) {
                        return false;
                    }

                    @Override
                    public void clearSelections() {

                    }
                });

and it helps. If it helps you too, let me know.

ThadeusAjayi avatar Nov 21 '17 08:11 ThadeusAjayi

@ThadeusAjayi thanks, i try to do it. thanks for your help.

xmy1231 avatar Nov 23 '17 06:11 xmy1231

Date select animation is not reflecting after implementing above method..

shubhexioms avatar Apr 09 '18 10:04 shubhexioms

It is still not reflecting, is there any solution to this ?

sourav-android avatar Dec 22 '21 18:12 sourav-android