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

ASK : How to set listener on calendar click? #48

Open
keziia22 opened this issue Apr 3, 2018 · 3 comments
Open

ASK : How to set listener on calendar click? #48

keziia22 opened this issue Apr 3, 2018 · 3 comments

Comments

@keziia22
Copy link

keziia22 commented Apr 3, 2018

how to set listener when calendar on click ?

@nasreekar
Copy link

nasreekar commented Jul 3, 2018

I added an interface in the Calendarview.java class and initialized the listener and used it in my data binding to listen to changes

private DateSelectionListener listener;
    public interface DateSelectionListener {
        void daySelected();
    }

 @Override
    public void onDaySelected() {
        selectedDays = getSelectedDays();
        displaySelectedDays();
        if (listener != null) listener.daySelected();
    }

@beh0907
Copy link

beh0907 commented May 9, 2019

implements OnDaySelectedListener

@OverRide
public void onDaySelected() {
~~~~
}

calendarDiary.setSelectionManager(new SingleSelectionManager(this));

@BlueBird-0
Copy link

I love beh0907!!

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

4 participants