圆形图像:替换为21之前的setClipToOutline

时间:2017-03-28 14:43:32

标签: android image imageview android-imageview

我正在寻找一种方法来创建圆形图像没有第三方库。

我发现this帖子提出了相同但有0个答案的帖子。

在发布/等于21(5.1)的API中,我在视图(because there is a bug where android:clipToOutline isn't working in the XML)上使用setClipToOutline方法并添加一个圆形的drawable作为ImageView的背景,但是应用程序必须支持版本19(4.4)以后。

是否有任何功能可以让我实现这一目标?也许,在支持库中?

感谢。

0 个答案:

没有答案