Android 12 Developer Preview is here! Try it out, and give us your feedback!

MaterialContainerTransformSharedElementCallback.ShapeableViewShapeProvider

public static class MaterialContainerTransformSharedElementCallback.ShapeableViewShapeProvider
extends Object implements MaterialContainerTransformSharedElementCallback.ShapeProvider

java.lang.Object
   ↳ com.google.android.material.transition.platform.MaterialContainerTransformSharedElementCallback.ShapeableViewShapeProvider


A MaterialContainerTransformSharedElementCallback.ShapeProvider that provides the view's ShapeAppearanceModel if the view implements the Shapeable interface.

Summary

Public constructors

ShapeableViewShapeProvider()

Public methods

ShapeAppearanceModel provideShape(View sharedElement)

Inherited methods

Public constructors

ShapeableViewShapeProvider

public ShapeableViewShapeProvider ()

Public methods

provideShape

public ShapeAppearanceModel provideShape (View sharedElement)

Parameters
sharedElement View

Returns
ShapeAppearanceModel