Skip to content

q200892907/ShadowDrawable

 
 

Repository files navigation

通过一行代码即可实现阴影效果:

ShadowDrawable.setShadowDrawable(textView1, Color.parseColor("#3D5AFE"), dpToPx(8),
    Color.parseColor("#66000000"), dpToPx(10), 0, 0);

详细介绍可参考:Android开发中阴影效果的实现

阴影效果:

image

About

Android开发之Shadow

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 90.2%
  • Kotlin 9.8%