RippleNodeConfiguration.FocusConfiguration.InsetRing


An inset ring focus visual - the created ripple will show an inset focus ring.

Summary

Public constructors

InsetRing(
    shape: Shape,
    outerStrokeInset: Dp,
    outerStrokeWidth: Dp,
    outerStrokeColor: ColorProducer,
    innerStrokeInset: Dp,
    innerStrokeWidth: Dp,
    innerStrokeColor: ColorProducer,
    focusingAnimationSpec: FiniteAnimationSpec<Float>,
    unfocusingAnimationSpec: FiniteAnimationSpec<Float>
)
Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

FiniteAnimationSpec<Float>

the animation spec used when gaining focus.

Cmn
ColorProducer

the color of the inner stroke.

Cmn
Dp

the inset from the edge of the shape's outline to the outer edge of the inner stroke.

Cmn
Dp

the width of the inner stroke.

Cmn
ColorProducer

the color of the outer stroke.

Cmn
Dp

the inset from the edge of the shape's outline to the outer edge of the outer stroke.

Cmn
Dp

the width of the outer stroke.

Cmn
Shape

the shape of the focus ring.

Cmn
FiniteAnimationSpec<Float>

the animation spec used when losing focus.

Cmn

Public constructors

InsetRing

InsetRing(
    shape: Shape,
    outerStrokeInset: Dp,
    outerStrokeWidth: Dp,
    outerStrokeColor: ColorProducer,
    innerStrokeInset: Dp,
    innerStrokeWidth: Dp,
    innerStrokeColor: ColorProducer,
    focusingAnimationSpec: FiniteAnimationSpec<Float>,
    unfocusingAnimationSpec: FiniteAnimationSpec<Float>
)
Parameters
shape: Shape

the shape of the focus ring.

outerStrokeInset: Dp

the inset from the edge of the shape's outline to the outer edge of the outer stroke.

outerStrokeWidth: Dp

the width of the outer stroke.

outerStrokeColor: ColorProducer

the color of the outer stroke.

innerStrokeInset: Dp

the inset from the edge of the shape's outline to the outer edge of the inner stroke.

innerStrokeWidth: Dp

the width of the inner stroke.

innerStrokeColor: ColorProducer

the color of the inner stroke.

focusingAnimationSpec: FiniteAnimationSpec<Float>

the animation spec used when gaining focus.

unfocusingAnimationSpec: FiniteAnimationSpec<Float>

the animation spec used when losing focus.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

focusingAnimationSpec

val focusingAnimationSpecFiniteAnimationSpec<Float>

the animation spec used when gaining focus.

innerStrokeColor

val innerStrokeColorColorProducer

the color of the inner stroke.

innerStrokeInset

val innerStrokeInsetDp

the inset from the edge of the shape's outline to the outer edge of the inner stroke.

innerStrokeWidth

val innerStrokeWidthDp

the width of the inner stroke.

outerStrokeColor

val outerStrokeColorColorProducer

the color of the outer stroke.

outerStrokeInset

val outerStrokeInsetDp

the inset from the edge of the shape's outline to the outer edge of the outer stroke.

outerStrokeWidth

val outerStrokeWidthDp

the width of the outer stroke.

shape

val shapeShape

the shape of the focus ring.

unfocusingAnimationSpec

val unfocusingAnimationSpecFiniteAnimationSpec<Float>

the animation spec used when losing focus.