Codenameone 如何在codename one中对相同表单上的图像使用幻灯片转换

Codenameone 如何在codename one中对相同表单上的图像使用幻灯片转换,codenameone,Codenameone,请告诉我如何在同一表格上使用幻灯片转换 我使用了这段代码,但它显示了错误 Label lab = new Label(); lab.setUIID("IMAGE"); lab.setTransitionOutAnimator(CommonTransitions.createSlideFadeTitle(true,duration.getAsInt(3000))); 请告诉我怎么做。谢谢您需要使用幻灯片。幻灯片淡入淡出是为表单设计的特殊过渡,在iOS中用于在滑动时淡入标题 设置组件入口/

请告诉我如何在同一表格上使用幻灯片转换

我使用了这段代码,但它显示了错误

Label lab = new Label();
 lab.setUIID("IMAGE");

  lab.setTransitionOutAnimator(CommonTransitions.createSlideFadeTitle(true,duration.getAsInt(3000)));

请告诉我怎么做。谢谢

您需要使用幻灯片。幻灯片淡入淡出是为表单设计的特殊过渡,在iOS中用于在滑动时淡入标题

设置组件入口/出口动画的方法是替换它,例如:

parentContainer.replace(currentComponent, newComponent, CommonTransitions.createSlide(CommonTransitions.SLIDE_HORIZONTAL, true, 400);

你需要使用幻灯片。幻灯片淡入淡出是为表单设计的特殊过渡,在iOS中用于在滑动时淡入标题

设置组件入口/出口动画的方法是替换它,例如:

parentContainer.replace(currentComponent, newComponent, CommonTransitions.createSlide(CommonTransitions.SLIDE_HORIZONTAL, true, 400);