Say I have a view,and I want to move it upward using setTranslationY
method.
View view = findViewById(R.id.mView);
view.setTranslationY(-10.0f);
The view is indeed moved upwards,but I find it still occupies the original position.How could I move the view permanently to its final position.Also I found a similar solution but does not work.Android translate animation - permanently move View to new position using AnimationListener