Mask ImageView with a shape

荒凉一梦 提交于 2019-12-12 02:16:00

问题


Is it possible to mask an ImageView with a shape such as a circle? I cant seem to figure out how to do this. I would ideally like to do this in the xml file.


回答1:


You can define custom shapes xml files in the drawable folder, the call them as background in imageview.



来源:https://stackoverflow.com/questions/17881104/mask-imageview-with-a-shape

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