Skip to content

Commit

Permalink
BlockImageSpan统一设置圆角
Browse files Browse the repository at this point in the history
  • Loading branch information
yuruiyin committed Jun 28, 2019
1 parent 7831a5f commit 32583b8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,8 @@ public void insertBlockImage(Drawable drawable, @NonNull BlockImageSpanVm blockI
View imageItemView = activity.getLayoutInflater().inflate(R.layout.rich_editor_image, null);
RoundedImageView imageView = imageItemView.findViewById(R.id.image);
imageView.setImageDrawable(drawable);
if (blockImageSpanVm.isPhoto() || blockImageSpanVm.isVideo()) {
// 相册图片或视频设置圆角
imageView.setCornerRadius(gImageRadius);
}
// 设置圆角
imageView.setCornerRadius(gImageRadius);

// 控制视频、gif、长图标识的显示和隐藏
setMarkIconVisibility(imageItemView, blockImageSpanVm);
Expand Down

0 comments on commit 32583b8

Please sign in to comment.