Q:

setting selected date into textview in android

I have calendar in my app. By clicking any of the date an activity will open with several edittext and one textview at the top right corner. I dont know how to set clicked date (say 12-Nov-2015) into the texview. Can anyone help me? 
Also I need help to change color for the clicked date. Thanks

A:

You need to use setOnDateChangeListener like this:
calendarview.setOnDateChangeListener(new OnDateChangeListener() {
            @Override
            public void onSelectedDayChange(CalendarView view, int year, int month,
                    int dayOfMonth) {
                 Toast.makeText(getApplicationContext(), ""+dayOfMonth, 0).show();
            }
        });

