【发布时间】:2016-01-16 02:01:37
【问题描述】:
我基本上想将一个视图从一个位置移动到另一个位置,另外我还想逐渐增加它的高度,那么我应该使用 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) 但没用。是否可以逐渐增加视图高度?
【问题讨论】: