VBox中的动画组件添加-删除 [英] Animated component adding-delete in a VBox

查看:106
本文介绍了VBox中的动画组件添加-删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以使VBox的元素在插入或删除新元素时平稳地移动到新位置?

Is there a way to make the elements of a VBox smoothly move to their new positions when a new element is inserted or removed?

实际上,我只需要在删除元素时使它们平滑移动即可.谢谢您的回答!

I actually need only to make them move smoothly when I remove an element. Thank you for your answers!

推荐答案

并非不扩展VBox并通过重写addChild和removeChild函数来添加您自己的代码来实现这一点.

Not without extending VBox and adding your own code to do so by overriding the addChild and removeChild functions.

这篇关于VBox中的动画组件添加-删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆