Пример #1
0
    private void initializeImageButton(final TransactionUIModel transaction) {
      IconTextView goalImage = (IconTextView) itemView.findViewById(R.id.goalTransactionButton);

      if (transaction.getGoalTransaction() != null || transaction.isIncome()) {
        goalImage.setVisibility(View.GONE);
      } else {
        goalImage.setVisibility(View.VISIBLE);
      }

      goalImage.setOnClickListener(
          new View.OnClickListener() {
            @Override
            public void onClick(View v) {
              showGoalTransactionDialog(transaction);
            }
          });
    }
  private void animateTooltip(long fadeDuration, long startFadeTime, LinearInterpolator linInter) {
    AlphaAnimation mAlAnimation = new AlphaAnimation(0, 1);
    mAlAnimation.setDuration(fadeDuration);
    mAlAnimation.setStartOffset(startFadeTime);
    mAlAnimation.setInterpolator(linInter);

    watchProgressArrow.startAnimation(mAlAnimation);
    watchProgressText.startAnimation(mAlAnimation);
    watchProgressArrow.setVisibility(View.VISIBLE);
    watchProgressText.setVisibility(View.VISIBLE);
  }