把本地图片形状做成圆形方法:
//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);
}