安卓在布局文件中能否将一个方形头像改成圆形?怎么实现?求大神指教!
可以, 通过自定义drawable即可,我的博客中有
http://blog.csdn.net/a2500100455/article/details/44701033
你可以重写imageview不过我觉得最简单的方法就是把你图片的圆角半径设置成图片的宽度,而且必须保证图片是个正方形,或者设置imageview为等宽等高。
http://blog.csdn.net/lmj623565791/article/details/41967509
http://blog.csdn.net/dreamfly2007/article/details/8486054
View设置自定义drawable的xml文件,shape设置成CirCle
https://arthurhub.github.io/Android-Image-Cropper/
http://www.androidhub4you.com/2014/10/android-custom-shape-imageview-rounded.html
http://curious-blog.blogspot.hk/2014/05/create-circle-bitmap-in-android.html
这个百度多的是,多查查就知道了
http://blog.csdn.net/lmj623565791/article/details/41967509