FocusRingDrawable

Drawable wrapper that provides focus rings.

Constructors

Link copied to clipboard
constructor()
constructor(@NonNull context: Context, @Nullable drawable: Drawable)

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun draw(@NonNull canvas: Canvas)
Link copied to clipboard
Search for and return a FocusRingDrawable if it is either the provided drawable or one level deep in a DrawableWrapper or LayerDrawable.
Link copied to clipboard
Search for, mutate, and return a FocusRingDrawable if it is either the provided drawable or one level deep in a DrawableWrapper or LayerDrawable.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun inflate(@NonNull res: Resources, @NonNull parser: XmlPullParser, @NonNull attrs: AttributeSet)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isStateful(): Boolean
Link copied to clipboard
Link copied to clipboard
@CanIgnoreReturnValue
open fun layer(@NonNull context: Context, @NonNull layerDrawable: LayerDrawable): FocusRingDrawable
@CanIgnoreReturnValue
open fun layer(@NonNull context: Context, @NonNull layerDrawable: LayerDrawable, @Nullable materialShapeDrawable: MaterialShapeDrawable): FocusRingDrawable
Add a FocusRingDrawable as a layer to the provided LayerDrawable if focus rings are enabled, otherwise do nothing and return null.
Link copied to clipboard
@CanIgnoreReturnValue
open fun mutate(): Drawable
Link copied to clipboard
open fun setFocusRingBounds(@Nullable bounds: Rect)
open fun setFocusRingBounds(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun setFocusRingEnabled(enabled: Boolean)
Link copied to clipboard
open fun setFocusRingInnerInset(innerInset: Float)
Link copied to clipboard
open fun setFocusRingInnerStrokeColor(@ColorInt innerStrokeColor: Int)
Link copied to clipboard
open fun setFocusRingInnerStrokeWidth(innerStrokeWidth: Float)
Link copied to clipboard
open fun setFocusRingInset(inset: Float)
Link copied to clipboard
Link copied to clipboard
open fun setFocusRingOuterStrokeColor(@ColorInt outerStrokeColor: Int)
Link copied to clipboard
open fun setFocusRingOuterStrokeWidth(outerStrokeWidth: Float)
Link copied to clipboard
open fun setFocusRingRadius(radius: Float)
Link copied to clipboard
Link copied to clipboard
open fun setFocusRingStateSet(@NonNull stateSet: Array<Int>)
Link copied to clipboard
open fun wrap(@NonNull context: Context, @Nullable drawable: Drawable): Drawable
Wrap the provided drawable with a FocusRingDrawable if focus rings are enabled, otherwise just return the provided drawable.