Open ShooterArk opened 7 years ago
@mBigFlower Could you help check this one ?
@SpongeBobSun I have not done this for a long time , but you pull me into the river. ok let me see. In my impression, this widget is a little ugly...
Anyway, just dig into it when you got time. Thanks
Send from my phone
On Wed, Oct 12, 2016 at 1:46 PM +0800, "mBigMing" notifications@github.com wrote:
@SpongeBobSun I have not done this for a long time , but you pull me into the river. ok let me see. In my impression, this widget is a little ugly...
You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/SpongeBobSun/mCalendarView/issues/28#issuecomment-253125056
No problem,
@ShooterArk Could you please paste some code? I'm little confused about your description...
Thanks
expCalendarView.setOnDateClickListener(new OnExpDateClickListener()).setOnMonthScrollListener(new OnMonthScrollListener() { @Override public void onMonthChange(int year, int month) { YearMonthTv.setText(getMonthName(month) + " " + year); }
@Override
public void onMonthScroll(float positionOffset) {
}
});
expCalendarView.setOnDateClickListener(new OnDateClickListener() {
@Override
public void onDateClick(View view, DateData date) {
_selectedDate = date.getYear() + "-" + date.getMonthString() + "-" + date.getDayString();
Toast.makeText(getActivity(), _selectedDate, Toast.LENGTH_SHORT).show();
tvSelectedDate.setText( date.getDayString() + "-" + getMonthName(Integer.parseInt(date.getMonthString())) + "-" + date.getYear());
new BackgroundWorker().execute();
}
});
@SpongeBobSun as you can see I need to utilize both the month scroll and date selection functionality. If I dont use the second listener the calendar shows dates that are marked, but if I use this second listener then the markDate functionality dont work at all.
Ps. Please ignore the code structure I am a naive developer. ;)
Thanks.
I think you should call markDate
manually in the second OnDateClickListener
. Besides I just fixed a bug in markeDate
which only see in the expcalendarview
. So please pull the latest code and try again. If it's still happens feel free to reach me.
Hi developer, I am trying to utilize that the shrink expandable calendarview. I have used two onDateClick listeners, one for the month scroll and the other for date selection. If I only use the month scroll that the markDate is visible but I also need to assess the date which user has selected to perform certain functions. Can you please advise in this regard. Thanks.