我想要将一个视图从一个位置移动到另一个位置,并且还想逐渐增加其高度,那么我应该使用setAnimation还是startAnimation?
TranslateAnimation ta = new TranslateAnimation(0, 0, Animation.RELATIVE_TO_SELF, -otherview.getHeight());
ta.setDuration(1000);
ta.setFillAfter(true);
myview.startAnimation(ta); //or, which one to use and what is the difference.
myview.setAnimation(ta);
问题:如何移动这个相对布局?
我尝试了 myview.scrollTo(x,y)
,但没有用。有没有可能逐渐增加视图的高度?