@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); }
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(); }); }