@Override public void onClick(View v) { int id = v.getId(); switch (id) { case R.id.rl_event_location: UIHelper.showEventLocation( getActivity(), mDetail.getEvent().getCity(), mDetail.getEvent().getSpot()); break; case R.id.bt_event_attend: showEventApplies(); break; case R.id.bt_event_apply: showEventApply(); break; default: break; } }