2016-09-26 2 views
1
@Override 
protected void postSplash(Form f) { 
    f.animateHierarchyAndWait(2000); 
    f.setTransitionInAnimator(null); 
    f.setTransitionOutAnimator(new FlipTransition()); 
} 

フォームのフリップアニメーションはシミュレータで動作しますが、iOSデバイスでテストすると、1秒間停止するように見えます。フォームのフリップトランジションは、iOSではスムーズではありません

@Override 
protected void beforeSplash(Form f) { 
    f.getAllStyles().setBgColor(0x414143); 
    f.getAllStyles().setBgTransparency(255); 

    f.setLayout(new BorderLayout(BorderLayout.CENTER_BEHAVIOR_SCALE)); 
    splashImg = theme.getImage("splash_bg.png"); 
    splashContainer = new Container(new FlowLayout(Label.CENTER)); 
    f.add(BorderLayout.CENTER, splashContainer); 

    splashLabel = new Label(); 
    splashLabel.setIcon(splashImg.scaledWidth(Display.getInstance().getDisplayWidth()/2 + 50)); 
    splashLabel.setVisible(false); 
    splashContainer.add(splashLabel); 
    splashContainer.getAllStyles().setMarginTop(Display.getInstance().getDisplayWidth()/3); 
} 

@Override 
protected void postSplash(Form f) { 
    splashLabel.setY(Display.getInstance().getDisplayHeight()); 
    splashLabel.setVisible(true); 

    f.animateHierarchyAndWait(1000); 
    f.setTransitionInAnimator(null); 
    f.setTransitionOutAnimator(new FlipTransition()); 
} 

答えて

0

変更可能な画像はiOSでは遅くなります。 UIをテクスチャイメージに塗りつぶして反転させますので、目立つように数秒かかることがあります。

通常は気にする必要はありませんが、変更可能な画像への描画は、iOS上での描画よりもはるかに遅いです。これは、UI要素とそのデザインの観点から、フォームの内容に大きく依存します。

+0

画面には、前に上にスライドするロゴがあります。上記のすべてのコードを更新しました。ありがとうございました。 –

+0

これは古いデバイスですか? –

+0

ipadとipodでバージョン9.3.5 –

関連する問題