Exemplo n.º 1
0
 @Override
 public void onClick(final LabelView label) {
   EffectUtil.removeLabelEditable(mImageView, drawArea, label);
   labels.remove(label);
   EditTextActivity.openTextEdit(
       PhotoProcessActivity.this, label.getTagInfo(), AppConstants.ACTION_EDIT_LABEL);
 }
Exemplo n.º 2
0
  private void initEvent() {

    commonLabelArea.setVisibility(View.VISIBLE);

    mImageView.setOnDrawableEventListener(wpEditListener);
    mImageView.setSingleTapListener(
        () -> {
          EditTextActivity.openTextEdit(
              PhotoProcessActivity.this,
              new TagItem(mImageView.getmLastMotionScrollX(), mImageView.getmLastMotionScrollY()),
              AppConstants.ACTION_EDIT_LABEL);
          drawArea.postInvalidate();
        });

    titleBar.setRightBtnOnclickListener(
        v -> {
          savePicture();
        });
  }