SCardView

Display :

Control the direction and color of shadow

c3ae9d55d4ae29ca8b88849a7dc6dc7c.png

Control the corner of shadow

2b9355bd38f03e4962f159dce989a9a3.png

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.

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐