Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yingLanNull/ShadowImageView
🔥可以根据图片内容变阴影颜色,更加细腻的阴影效果 It can change color according to the picture, more delicate shadow effect
https://github.com/yingLanNull/ShadowImageView
android image java shadow ui view
Last synced: 3 months ago
JSON representation
🔥可以根据图片内容变阴影颜色,更加细腻的阴影效果 It can change color according to the picture, more delicate shadow effect
- Host: GitHub
- URL: https://github.com/yingLanNull/ShadowImageView
- Owner: yingLanNull
- License: apache-2.0
- Created: 2017-03-25T09:42:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-23T08:26:45.000Z (over 6 years ago)
- Last Synced: 2024-06-28T05:47:39.672Z (4 months ago)
- Topics: android, image, java, shadow, ui, view
- Language: Java
- Homepage:
- Size: 8 MB
- Stars: 2,619
- Watchers: 45
- Forks: 305
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-android-ui - ShadowImageView - 更加细腻的阴影效果 (ImageView)
README
# ShadowImageView
## Abstract
More exquisite shadow effect, used in some special scene to enhance the user experience.## Chinese Documents
[查看中文文档](https://github.com/yingLanNull/ShadowImageView/blob/master/READEME_CN.md)## Picture
![1](https://github.com/yingLanNull/ShadowImageView/blob/master/show/shadow1.png)
![2](https://github.com/yingLanNull/ShadowImageView/blob/master/show/shadow2.png)## GIF
![1](https://github.com/yingLanNull/ShadowImageView/blob/master/show/shadow.gif)## Add Picture
![3](https://github.com/yingLanNull/ShadowImageView/blob/master/show/shadowcolor.png)## Demo
[Download App](https://github.com/yingLanNull/ShadowImageView/blob/master/show/app-debug.apk)## Usage
#### Gradle
```
dependencies {
compile 'com.yinglan.shadowimageview:shadowimageview:1.0.4'
}
```### In layout
```
```
### 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
See[PPMusicImageShadow](https://github.com/PierrePerrin/PPMusicImageShadow), 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](LICENSE). You can find out more about the license at:http://www.apache.org/licenses/LICENSE-2.0