Android create item in GridView with round corners and ImageView -


I have a GriView in which each element is a card in which there are round corners, I have an image full of net on top of it . I would like to fit the image inside the card so that it can be rounded to the top corners. I have tried the layer-list background, but no results.

Here's an image to show what I want.

In advance thanks

I have found a solution: just a spherical image view Insert (rectangular rear of opaque relative layout) (bottom side only in rounded corners) and then set a negative bottom margin in the image view, so that it will be covered by relative layout for approximately 5 pi


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -