質問

Hello: Here is the question:

I've got a custom view. It's shape is an rounded rectangle. (as drawn in its onDraw Method). I've got a Bitmap that I want to set it as background. I can use the method:

void drawBitmap (Bitmap bitmap, Rect src, Rect dst, Paint paint)

To scale the image to rectangle smaller thant the shape of my view but I would like for it to occupy the whole view. Is there any way to crop the image corners so the match a rounded rectangle?

役に立ちましたか?

解決

To close the question, I am posting the comment with a bit more text.

The answer can be found in the following question:

How to make an ImageView with rounded corners?

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top