Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在将 aButton添加到 a 时为其设置动画,我希望Forma在占据网格单元区域的位置之前平稳地向下移动。如何在 LWUIT 中制作该动画?GridLayout(2,2);Button
Button
Form
GridLayout(2,2);
只需将按钮添加到表单中,不要调用 repaint/revalidate 等,而是调用myForm.animateLayout(500);.
myForm.animateLayout(500);
这显然只适用于 1.5 或更高版本,您可以在 LWUIT 演示的动画和布局部分中看到此示例。