Skip to content
ZieIony edited this page Jul 14, 2017 · 2 revisions

carbon_rippleColor

Methods: get/setRippleDrawable(Drawable)

Type: color

Used for specifying a touch ripple for a view. Can be any color with alpha value. Carbon theme has an attribute called carbon_rippleColor, which can be used to change ripple colors globally. Setting the ripple color to @null clears the ripple from the view.

carbon_rippleStyle

Type: enum (over, borderless, background)

Ripple style can be set to one of three enum values. Background style ripple is set as a background and behaves like a simple animated background. Borderless style extends beyond view's bounds to create a circle. Borderless ripples are drawn by parent layouts, not by views itselves. Over style is useful for creating ripples on views with rich content, like CardView, ImageView or layouts.

carbon_rippleHotspot

Type: boolean

Ripples with hotspot enabled start in the point of touch. Ripples with hotspot disabled start in the middle of a view.

Clone this wiki locally