|
|
@@ -5,6 +5,7 @@ import android.animation.AnimatorListenerAdapter
|
|
|
import android.animation.ValueAnimator
|
|
|
import android.view.View
|
|
|
import android.view.animation.AccelerateInterpolator
|
|
|
+import com.atmob.keyboard_android.component.base.IUIComponent
|
|
|
import com.atmob.keyboard_android.component.base.animator.ComponentAnimator
|
|
|
import com.atmob.keyboard_android.ext.measureView
|
|
|
|
|
|
@@ -25,6 +26,15 @@ class TransitionAnimator : ComponentAnimator() {
|
|
|
*/
|
|
|
private var mComponentSize: Pair<Int, Int>? = null
|
|
|
|
|
|
+ override fun onAttachUIComponent(component: IUIComponent) {
|
|
|
+ super.onAttachUIComponent(component)
|
|
|
+ component.asView().let { rootView ->
|
|
|
+ rootView.post {
|
|
|
+ ensureInitComponentSize(rootView)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
override fun show(onStart: (() -> Unit)?, onFinish: (() -> Unit)?) {
|
|
|
if (isShow) {
|
|
|
return
|