-
Notifications
You must be signed in to change notification settings - Fork 375
ripple
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.
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.
Type: boolean
Ripples with hotspot enabled start in the point of touch. Ripples with hotspot disabled start in the middle of a view.
Copyright 2015 Marcin Korniluk 'Zielony'