滑行:仅在顶部显示半径角的图像

Ale*_*lex 6 android android-glide

我使用Glide。以下代码段:

Glide.with(context).load(referenceUrl).into(holder.imageViewPhoto);
Run Code Online (Sandbox Code Playgroud)

好。很好 但是我需要仅在TOP上显示带有圆角的图像。

像这样:

半径

Glide有可能吗?

小智 20

您可以使用 :

requestOptions.centerInside().transform(new CenterInside(), new GranularRoundedCorners(topLeft, topRight, bottomRight, bottomLeft))
Run Code Online (Sandbox Code Playgroud)