2018-08-02 Android中实现阴影和图片圆角效果
16lz
2021-01-26
Android中实现阴影和图片圆角效果
这里要讲的是两个github上两个开源的轮子
圆角效果的依赖
implementation 'com.makeramen:roundedimageview:2.3.0'
阴影效果的依赖
implementation 'com.github.dmytrodanylyk.shadow-layout:library:1.0.3'
圆角依赖使用时,只需要在布局中设置
根据下面四个值,便可以设置每个角的度数
app:riv_corner_radius_top_left="@dimen/x10"app:riv_corner_radius_top_right="@dimen/x10"app:riv_corner_radius_bottom_right="@dimen/x10"app:riv_corner_radius_bottom_left="@dimen/x10"
阴影效果的依赖使用时,也只需要在布局中设置即可
更多相关文章
- Android(安卓)无法解决第三方库依赖问题
- Android中Dialog去黑边的方法
- Android(安卓)Material Design-Defining Shadows and Clipping V
- android使用viewpager计算偏移量实现选项卡功能
- android动画学习之动画参数设置
- Android(安卓)Gradle使用笔记(持续更新)
- 如何定制PopupWindow弹出框及方法介绍
- AndroidStudio3.2 Failed to resolve:.......问题解决方法
- Android(安卓)各类优秀依赖库 等各位砖友来搬