Esempio n. 1
0
 @Override
 public void initView(View view) {
   super.initView(view);
   mLocation.setOnClickListener(this);
   mBtAttend.setOnClickListener(this);
   mBtEventApply.setOnClickListener(this);
 }
Esempio n. 2
0
  @Override
  protected void executeOnLoadDataSuccess(Post detail) {
    super.executeOnLoadDataSuccess(detail);
    mTvTitle.setText(mDetail.getTitle());
    mTvStartTime.setText(
        String.format(getString(R.string.event_start_time), mDetail.getEvent().getStartTime()));
    mTvEndTime.setText(
        String.format(getString(R.string.event_end_time), mDetail.getEvent().getEndTime()));
    mTvSpot.setText(mDetail.getEvent().getCity() + " " + mDetail.getEvent().getSpot());

    // 站外活动
    if (mDetail.getEvent().getCategory() == 4) {
      mBtEventApply.setVisibility(View.VISIBLE);
      mBtAttend.setVisibility(View.GONE);
      mBtEventApply.setText("报名链接");
    } else {
      notifyEventStatus();
    }
  }