Crop image as square with picasso
问题 How can I crop image to square using picasso library on Android? I need following: cat one and cat two 回答1: The following project provides a lot of different transformations for Picasso https://github.com/wasabeef/picasso-transformations The one you are interested is named CropSquareTransformation and you can apply it by using the following code Picasso.with(mContext) .load(R.drawable.demo) .transform(transformation) .transform(new CropSquareTransformation()) .into(holder.image); You could