Explanation and solution at the bottom.
I am developing one slider layout animation, the animation work fine but when all processes end, they get next E
Try this:
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(this.mainview.getWidth(), this.mainview.getHeight()); params.setMargins(left, top, right, bottom); this.mainview.setLayoutParams(params);
This may be help.