Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Glide: show image with radius corners only on top

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:

radius

Is it possible by Glide?

like image 385
Alex Avatar asked Nov 17 '17 12:11

Alex


People also ask

What is placeholder Glide?

Placeholder. Placeholders are Drawables that are shown while a request is in progress.


1 Answers

You can use :

requestOptions.centerInside().transform(new CenterInside(), new GranularRoundedCorners(topLeft, topRight, bottomRight, bottomLeft))
like image 160
Ranzz Avatar answered Sep 22 '22 07:09

Ranzz