Alex
Alex

Reputation: 1239

Android - Imageview inside round +ish shape?

How can I set rectangular image inside this kind of shape with clip to bound. The only resource I was given is just this shape with stroke and a rectangular image view. Do you have any suggestion how to achieve this result ?

enter image description here

Upvotes: 0

Views: 419

Answers (1)

TBridges42
TBridges42

Reputation: 1879

As I just answered to someone else, I think the first step in "how do I do this neat UI trick?" should always be to check out wasabeef's amazing collection of UI libraries. In your case, check out Maskable Layout. With it, you provide a drawable to use as a mask for your image.

Upvotes: 2

Related Questions