开发者

Image with rounded corners in android

i just wanna di开发者_运维技巧splay one image with rounded corners(not on background view)in android.How could i do this?Help me..Thanks Regards, Sudhakar.


You mean you have a normal image and you want to display it with rounded corners ?

What I would do is to create a nine-patch image with your corners (lots of resources on how to do that : http://developer.android.com/guide/developing/tools/draw9patch.html). Beside the black corners (or whatever the color), make everything else transparent.

Then you can draw that image on top of your picture with the right layout.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜