滑动:只在顶部显示带有半径角的图像。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了滑动:只在顶部显示带有半径角的图像。相关的知识,希望对你有一定的参考价值。

我用的是Glide。这里的片段。

Glide.with(context).load(referenceUrl).into(holder.imageViewPhoto);

好的 但我需要图像只在上面显示半径角。

就像这样。

radius

用Glide可以吗?

答案

你可以使用:

requestOptions.centerInside().transform(new CenterInside(), new GranularRoundedCorners(topLeft, topRight, bottomRight, bottomLeft))

以上是关于滑动:只在顶部显示带有半径角的图像。的主要内容,如果未能解决你的问题,请参考以下文章