ShadowImageView

简介:可以根据图片变颜色,更加细腻的阴影效果 It can change color according to the picture, more delicate shadow effect
更多:作者   提 Bug   
标签:

Abstract

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

Chinese Documents

查看中文文档

Picture

1 2

GIF

1

Demo

Download App

Usage

Gradle

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

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" />

Set Picture

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

Set the picture radius

    shadow.setImageRadius(radius);

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

Android 开发经验分享
用了一年多的理财推荐
Android 开发经验分享
用了一年多的理财推荐