Add method waitForParams() (returning void!) that can be called instead of start().
The ObjectAnimator has to be built (and started), when the View gets its LayoutParams. If LayoutParams are available at the moment of call (of the waitForParams method), the Animator should be built and started right away. If LayoutParams are not available, a proper OnAttachStateChangeListener should be added for the animated View.
Add method
waitForParams()(returningvoid!) that can be called instead ofstart().The
ObjectAnimatorhas to be built (and started), when theViewgets itsLayoutParams. IfLayoutParamsare available at the moment of call (of thewaitForParamsmethod), theAnimatorshould be built and started right away. IfLayoutParamsare not available, a properOnAttachStateChangeListenershould be added for the animatedView.