android的cardview设置阴影,GitHub - xiaoxiaAndroid/SCardView-master: 一个可以配置阴影方向和颜色的类 CardView 控件 SCardView...
SCardViewDisplay :Control the direction and color of shadowControl the corner of shadowHow to use ?Gradle Groovy DSLimplementation 'io.github.meetsl:SCardView:1.2'AttributeUpdate LogV1.2issue#11 Updat
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.
更多推荐



所有评论(0)