问题
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