Android Recipe #1, image with rounded corners » roundrect-950×1585

2 Responses to “roundrect-950×1585”

  1. Dear Romain Guy,

    thanks a lot for this tutorial and for your source code.

    I tried to use your Drawable for an ImageView, but this does only work if the ImageView has a fixed layout_width and layout_height. Using wrap_content results in showing nothing at all.

    Do you know a way to fix this? I think the sizes of your drawable are clear (bitmap width and height minus margin).

    Best regards,
    Marco Schmitz

  2. Hello Romain, ou bonjour.

    I’m looking for a way to get only one rounded corner. I’m just thinking adding other (half and not rounded) RectF to the canvas. Is it the best solution ?

    Merci bien.

Leave a Reply