public interface AnimatedRootHost
Host
using the transition extension would need to
implement this interface to be able to receive size updates when animating. The size information
received in the callbacks should be used in android.view.View#onMeasure(int, int)
to
override the size information when animating. This needs to be different from a regular Host
where we call measure and layout manually.Modifier and Type | Method and Description |
---|---|
void |
notifyVisibleBoundsChanged(Rect visibleRect,
boolean processVisibilityOutputs)
This allows inner RootHosts to trigger a mount on a custom visibleRect.
|
void |
setAnimatedHeight(int height)
Sets the height that the root
Host should take on the next
measure pass and then requests a layout. |
void |
setAnimatedWidth(int width)
Sets the width that the root
Host should take on the next
measure pass and then requests a layout. |
void setAnimatedWidth(int width)
void setAnimatedHeight(int height)
void notifyVisibleBoundsChanged(Rect visibleRect, boolean processVisibilityOutputs)