コード例 #1
0
 @Override
 public void initUiAndListener() {
   ButterKnife.bind(this);
   mFeedbackPresenter.bindData(
       getIntent().getIntExtra(mFeedbackPresenter.TYPE, mFeedbackPresenter.TYPE_FEEDBACK));
   initToolBarUI();
   mFeedbackPresenter.attachView(this);
   initProgressBar();
 }
コード例 #2
0
 @OnClick(R.id.fab_send)
 public void clickSendFeedback(View v) {
   boolean wannaStartAnimation = mFeedbackPresenter.checkFeendback();
   if (wannaStartAnimation) {
     startSendingAnimation(
         new RevealView.RevealAnimationListener() {
           @Override
           public void finish() {
             mFeedbackPresenter.sendFeedback(
                 mEmailText.getText().toString(), mContentText.getText().toString());
           }
         });
   }
 }