我在这个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高度的情况下修复它.