/** ��ʼ���б����� */ private void initData() { listDay = calendarComponent.getListDay(); calendarComponent.setOnMonthChangeListener( new MonthChangeListener() { public void changeMonth(CalendarComponent calendar, FDDay day) { nowMonthOfDay = day; if (!isCalendarHiden) { // setMonthTitle(day); } else { // tvMonth.setText(nowMonthOfDay.getYear()+""); } } }); calendarComponent.setOnHideListener( new BackgroundHideListener() { public void hideBG(CalendarComponent calendar, boolean isHide) { isCalendarHiden = isHide; if (nowMonthOfDay != null) { if (isHide) { // tvMonth.setText(nowMonthOfDay.getYear()+""); } else { // setMonthTitle(nowMonthOfDay); } } } }); calendarComponent.setOnSelectedDayListener( new OnDaySelectedListener() { public void onSelected(CalendarAdapter adapter, FDDay day) { // selectedDay = day; if (day != null) { if (lvDays != null && day != null) { lvDays.setSelection(day.getIndexInCalendar()); } } } }); eAdapter = new CalendarDaysAdapter(); lvDays.setAdapter(eAdapter); FDDay td = calendarComponent.getcAdapter().getSelectedDay(); today = td.clone(); // selectedDay = today.clone(); currentDayIndex = calendarComponent.getCalendar().getCurrentTodayIndex(); lvDays.setSelection(currentDayIndex); lvDays.setOnScrollListener(new DaysLVOnScrollListener()); }