把本地图片形状做成圆形方法:
//id(drawable类型)
public static void setcircle(Context context,int id,ImageView img)
{
Bitmap bitmap=BitmapFactory.decodeResource(context.getResources(), id);
RoundedBitmapDrawable mRound
=RoundedBitmapDrawableFactory.create(context.getResources(), bitmap);
mRound.setCircular(true);
img.setImageDrawable(mRound);
}
原文:http://1206995290qq.blog.51cto.com/1753289/1845195