@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_basic);
    ButterKnife.bind(this);

    widget.setOnDateChangedListener(this);
    widget.setOnMonthChangedListener(this);
  }
Пример #2
0
  private void initView() {
    calendarView = (MaterialCalendarView) findViewById(R.id.calendarView);
    newSchDate = (TextView) findViewById(R.id.new_sch_date);

    timePicker = (TimePicker) findViewById(R.id.timePicker);
    newSchTime = (TextView) findViewById(R.id.new_sch_time);
    timePicker.setOnTimeChangedListener(this);

    calendarView.setOnDateChangedListener(this);
    calendarView.setOnMonthChangedListener(this);

    spinner = (Spinner) findViewById(R.id.spinner_location);
    setCourseNames();

    schContentsNew = (EditText) findViewById(R.id.sch_contents_new);
  }