# SCardView-master
**Repository Path**: liveb/SCardView-master
## Basic Information
- **Project Name**: SCardView-master
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-06-16
- **Last Updated**: 2021-06-16
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# SCardView
#### Display :
> Control the direction and color of shadow

> Control the corner of shadow

#### How to use ?
> Gradle Groovy DSL
```
implementation 'io.github.meetsl:SCardView:1.2'
```
> Attribute
```
```
#### Update Log
##### V1.2
> issue#11 Update the color of card's shadow dynamically
```
/**
* Updates the shadow color of the CardView
*
* @param startColor The new startColor to set for the card shadow
* @param endColor The new endColor to set for the card shadow
*/
fun setCardShadowColor(@ColorInt startColor: Int, @ColorInt endColor: Int)
/**
* update the both of background color and shadow color of the card view
*/
fun setColors(@ColorInt backgroundColor: Int, @ColorInt shadowStartColor: Int, @ColorInt shadowEndColor: Int)
```
> issue#7 The attribute of 'layout_gravity = end|right' at the children of SCardView has no effect. This problem has been resolved.