Cropping Shape of Square Image Android In App

▼魔方 西西 提交于 2019-12-04 05:47:12

I found my solution here but I accept other answers!!

I used this library https://arthurhub.github.io/Android-Image-Cropper/

See the example code in sample project in addition to that you have to fix the aspect ratio and set the scale to 1.

cropImageView.setFixedAspectRatio(true);
cropImageView.setScaleX(1.0f);
cropImageView.setScaleY(1.0f);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!