layer
@CanIgnoreReturnValue
Add a FocusRingDrawable as a layer to the provided LayerDrawable if focus rings are enabled, otherwise do nothing and return null.
See layer.
@CanIgnoreReturnValue
Add a FocusRingDrawable as a layer to the provided LayerDrawable if focus rings are enabled, otherwise do nothing and return null.
This method of integrating focus rings should be preferred if the drawable is a bounded ripple drawable (has layers), because we can add the focus ring as a layer without affecting the ripple bounds. See wrap for an alternative method where the focus ring can wrap the provided drawable instead of being added as a layer.
The MaterialShapeDrawable will be used to draw the focus ring outline shape and bounds.