Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

ShadowImageView

> 编程语言
Open source

可以根据图片内容变阴影颜色,更加细腻的阴影效果 It can change color according to the picture, more delicate shadow effect

2.6K stars0 likes0 views
WebsiteGitHub

About

可以根据图片内容变阴影颜色,更加细腻的阴影效果 It can change color according to the picture, more delicate shadow effect

ShadowImageView

Abstract

More exquisite shadow effect, used in some special scene to enhance the user experience.

Chinese Documents

查看中文文档

Picture

GIF

Add Picture

Demo

Download App

Usage

Gradle

dependencies {
    compile 'com.yinglan.shadowimageview:shadowimageview:1.0.4'
}

In layout

	    <com.yinglan.shadowimageview.ShadowImageView
	            android:id="@+id/shadow"
                android:layout_width="300dp"
                android:layout_height="300dp"
                app:shadowRound="20dp"
                app:shadowSrc="@mipmap/lotus"
                app:shadowColor="@color/colorAccent"/>

Set Picture

    shadow.setImageResource(resID); 
    shadow.setImageDrawable(drawable); 
    shadow.setImageBitmap(bitmap);

Set the picture radius

    shadow.setImageRadius(radius);

Set the shadow color of the image

    shadow.setImageShadowColor(color);

Notice

SeePPMusicImageShadow, do a simple implementation, there may be a potential problem and use learning exchanges, looking forward to you have a better way of implementation.

License

The work done has been licensed under Apache License 2.0. The license file can be found here. You can find out more about the license at:

http://www.apache.org/licenses/LICENSE-2.0

GitHub Issues· 0 open

View all on GitHub

No open issues yet, or sync has not completed.

Highlights

  • •Java
  • •android
  • •image
  • •java
  • •shadow

> Tags

Javaandroidimagejavashadow

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言