ShadowImageView

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

Github星跟踪图

ShadowImageView

Abstract

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

Chinese Documents

查看中文文档

Picture

1
2

GIF

1

Add Picture

3

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

主要指标

概览
名称与所有者yingLanNull/ShadowImageView
主编程语言Java
编程语言Java (语言数: 1)
平台
许可证Apache License 2.0
所有者活动
创建于2017-03-25 09:42:52
推送于2018-05-23 08:26:45
最后一次提交2018-05-23 16:26:13
发布数0
用户参与
星数2.6k
关注者数44
派生数303
提交数37
已启用问题?
问题数28
打开的问题数8
拉请求数0
打开的拉请求数0
关闭的拉请求数0
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?