我正在向上移动一个列表视图,但在它移动后,以前的视图实例的痕迹仍然存在。我怎样才能摆脱它。我试过使主布局无效,但没有用。请指导。
http://www.youtube.com/watch?v=XcKpJu8zWe8&feature=youtu.be
谢谢
r = new Runnable(){
public void run(){
TranslateAnimation translateAnimation = new TranslateAnimation(0, 0, mbar4.getTop(), -mbar4.getBottom());
translateAnimation.setDuration(1000);
translateAnimation.setFillAfter(true);
mbar4.startAnimation(translateAnimation);
st4.startAnimation(translateAnimation);
Animation animation = new TranslateAnimation(0, 0, PullListView.getTop(), -PullListView.getTop());
animation.setDuration(1000);
animation.setFillAfter(true);
PullListView.startAnimation(animation);
PullListView.invalidate();
}
}
};
h.removeCallbacks(r);
h.postDelayed(r, 5000);