Glide: show image with radius corners only on top

时光总嘲笑我的痴心妄想 提交于 2021-02-16 15:53:05

问题


I use Glide. Here snippet:

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

OK. It's work fine. But I need image to show with radius corners only on TOP.

Something like this:

Is it possible by Glide?


回答1:


You can use :

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


来源:https://stackoverflow.com/questions/47350973/glide-show-image-with-radius-corners-only-on-top

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!