@Override public void onClick(View view) { int id = view.getId(); if (id == R.id.back_layout) { finish(); } else if (id == R.id.calendar_left) { mCalendarAdapter.showPreviousMonth(this); } else if (id == R.id.calendar_right) { mCalendarAdapter.showNextMonth(this); } else { } }