0

I use a animation to move a layout from right to left.

The animation doesn't work correctly. When the view is moving, the bottom and right edges of moving view are painted on screen as the follow picture show. Does anyone know the reason and how to fix this problem? thanks!

j0k
  • 22,600
  • 28
  • 79
  • 90

1 Answers1

0

refer that link here. That animation work on list view adapter and activity. u just try it.

private Animation inFromRightAnimation() {

    Animation inFromRight = new TranslateAnimation(
            Animation.RELATIVE_TO_PARENT, +1.0f,
            Animation.RELATIVE_TO_PARENT, 0.0f,
            Animation.RELATIVE_TO_PARENT, 0.0f,
            Animation.RELATIVE_TO_PARENT, 0.0f);
    inFromRight.setDuration(500);
    inFromRight.setInterpolator(new AccelerateInterpolator());
    return inFromRight;
    }
Community
  • 1
  • 1
Arul Pandian
  • 1,685
  • 15
  • 20