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"

阴影效果的依赖使用时,也只需要在布局中设置即可

                

更多相关文章

  1. Android(安卓)无法解决第三方库依赖问题
  2. Android中Dialog去黑边的方法
  3. Android(安卓)Material Design-Defining Shadows and Clipping V
  4. android使用viewpager计算偏移量实现选项卡功能
  5. android动画学习之动画参数设置
  6. Android(安卓)Gradle使用笔记(持续更新)
  7. 如何定制PopupWindow弹出框及方法介绍
  8. AndroidStudio3.2 Failed to resolve:.......问题解决方法
  9. Android(安卓)各类优秀依赖库 等各位砖友来搬

随机推荐

  1. Android的SDK与ADT不匹配问题
  2. android studio 报Error:failed to find
  3. 环境变量ANDROID_SDK_HOME的作用
  4. android控件之ImageButton android:scale
  5. android布局居中
  6. android:各种访问权限Permission
  7. android消息处理机制学习(一)-Handler,Mess
  8. android 二 BMI 小例子
  9. Android 3.0 r1 API中文文档(107) —— A
  10. android aapt (android asset packaging t