【发布时间】:2015-07-01 16:15:03
【问题描述】:
假设我有一个视图,我想使用setTranslationY 方法将其向上移动。
View view = findViewById(R.id.mView);
view.setTranslationY(-10.0f);
视图确实向上移动了,但我发现它仍然占据原始位置。我怎样才能将视图永久移动到最终位置。我也找到了类似的解决方案但不起作用。Android translate animation - permanently move View to new position using AnimationListener
【问题讨论】: