答案 0 :(得分:1)
你可以查看这个。 https://github.com/mafujuls/mafs-image-shape
整合这个lib:
dependencies {
compile 'com.mafstech.libs:mafs-image-shape:1.0.4'
}
实现后,您只需要用一些参数编写单行代码。那就是:
Shaper.shape(MainActivity.this, R.drawable.your_image, R.drawable.your_shaped_image, your_image_view, height, weight);
答案 1 :(得分:0)