小编Waq*_*mad的帖子

TranslateAnimation处于反向位置?

我在使用TranslateAnimation的应用程序,但我想将TranslateAnimation反转到开始位置.

    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);

        setContentView(R.layout.imageviewactivity);

        TranslateAnimation toptranslateanimation = new TranslateAnimation(0, 0, tempBar,
                    scanner_image.getHeight() - 50);
        toptranslateanimation.setDuration(4000);
            toptranslateanimation.setAnimationListener(this);
                scanning_bar.setAnimation(toptranslateanimation);
}
Run Code Online (Sandbox Code Playgroud)

android translate-animation

5
推荐指数
1
解决办法
1098
查看次数

标签 统计

android ×1

translate-animation ×1