Exemplo n.º 1
0
        @Override
        public void handleMessage(Message msg) {
          super.handleMessage(msg);

          Calendar dateCalendar = calendars.get(msg.what);

          if (onCalendarListener != null) {
            onCalendarListener.onCalendarSelected(dateCalendar);
          }

          calendarsAdapter.setClickIndex(msg.what);

          calendarsAdapter.notifyDataSetChanged();
        }
Exemplo n.º 2
0
  public void step2(CalendarConfig config) {
    this.config = config;

    //
    // findViewById(getResourseIdByName(mContext.getPackageName(),"id","galley_calendar")).setBackgroundColor(config.getLAYOUT_COLOR());
    findViewById(R.id.galley_calendar).setBackgroundColor(config.getLAYOUT_COLOR());

    calendarLayout.setBackgroundColor(config.getLAYOUT_COLOR());

    pre_month_icon_in_layout.setText(config.getPRE_MONTH_ARROW());
    next_month_icon_in_layout.setText(config.getNEXT_MONTH_ARROW());
    calendar_open.setText(config.getOPEN_BIG_CALENDAR());
    calendar_close.setText(config.getCLOSE_BIG_CALENDAR());

    preMonth.setTextColor(config.getHIDE_COLOR());
    nextMonth.setTextColor(config.getHIDE_COLOR());

    calendarsAdapter.setColor(config.getLAYOUT_COLOR(), config.getHIDE_COLOR());
    //        adapter.setColor(config.getLAYOUT_COLOR(),config.getHIDE_COLOR());

    if (config.getTypeface() != null) {
      calendar_open.setTypeface(config.getTypeface());
      calendar_close.setTypeface(config.getTypeface());
      next_month_icon_in_layout.setTypeface(config.getTypeface());
      pre_month_icon_in_layout.setTypeface(config.getTypeface());
    }
  }