现在Android程序风格Google一般推荐material风格,并开发了对应的库。一般依赖如下 :
dependencies { implementation 'com.google.android.material:material:1.4.0' }
该库可以实现一些平时处理起来比较复杂的效果,比如圆角ImageView。
参考链接:
- api文档
https://developer.android.google.cn/reference/com/google/android/material/imageview/ShapeableImageView- 效果参考文档
https://www.material.io/- MDC_Android示例:
https://github.com/material-components/material-components-android