相关疑难解决方法(0)

在父母之外去的时候Android视图消失了

我在这个LinearLayout中有一个LinearLayout和ImageView.

ImageView有一个翻译效果.

// v = ImageView    
ObjectAnimator animation2 = ObjectAnimator.ofFloat(v, "translationY", 200);
                        animation2.setDuration(3000);
                        animation2.setTarget(v);
                        animation2.start();
Run Code Online (Sandbox Code Playgroud)

动画工作但是当ImageView超出LinearLayout时它就消失了.

你可以在这里看到问题:http://screenr.com/zoAH

如何在不修改LinearLayout高度的情况下修复它.

java animation android android-animation

61
推荐指数
3
解决办法
3万
查看次数

标签 统计

android ×1

android-animation ×1

animation ×1

java ×1