private void InitUI() {
    TextView leftButton = (TextView) findViewById(R.id.left_text);
    leftButton.setOnClickListener(
        new OnClickListener() {

          @Override
          public void onClick(View v) {
            setResult(RESULT_CANCELED);
            finish();
          }
        });

    TextView rightButton = (TextView) findViewById(R.id.right_text);
    rightButton.setOnClickListener(
        new OnClickListener() {

          @Override
          public void onClick(View v) {
            Intent data = new Intent();
            data.putExtra(KEY_CALENDAR_ID, calendarID);
            setResult(RESULT_OK, data);
            finish();
          }
        });

    calendarNameTextView = (TextView) findViewById(R.id.calendar_name_text);

    calendarDescTextView = (TextView) findViewById(R.id.calendar_desc_text);

    ImageView imageView = (ImageView) findViewById(R.id.arrow_icon);
    imageView.setImageResource(R.drawable.schedule_calendar_arrow_up);

    calendarList = (ListView) findViewById(R.id.calendar_list);
    calendarList.setOnItemClickListener(
        new OnItemClickListener() {

          @Override
          public void onItemClick(AdapterView<?> parent, View view, int position, long id) {}
        });

    calendarList.setAdapter(new LocationAdapter(this));
    calendarList.setOnItemClickListener(
        new OnItemClickListener() {

          @Override
          public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            calendarID = id;
            Calendar365 item = (Calendar365) parent.getItemAtPosition(position);
            update(item);
            ((LocationAdapter) parent.getAdapter()).notifyDataSetChanged();
          }
        });

    CalendarManager calendarManager = new CalendarManager(this);
    update(calendarManager.findCalendar(calendarID));
  }
 private void getCalendars() {
   calendars = new ArrayList<Calendar365>();
   calendars.add(calendarManager.findPrimaryCalendar());
   calendars.addAll(calendarManager.ListGoogleCalendars());
 }