I'm having a rather odd problem with Animation in my project. In the screenshots posted below you can clearly see the Totals card leaving some sort of trail upon animation. This problem is reproducible on a stock Nexus 7 running 4.2.2. The Totals card has a Google Now style Animation. It is important to note that the container for the Totals card is a Fragment, the Menu to the left in the landscape screenshot is a different Fragment, and the bottom buttons are part of the Activity that the Fragments are attached to.
I can't seem to find a solution online, I have tried setFillAfter"true" and offsetting the beginning of the animation. The trail in the Activity's buttons on the bottom ("Previous & "Next) disappears when one of the buttons are pressed.
Here's the code in the onCreateView of the Totals Fragment:
final View view = inflater.inflate(R.layout.fragment_totals,
container, false);
Fonts.setRobotoThinFont(getActivity(), view);
final LinearLayout mContainer = (LinearLayout)
view.findViewById(R.id.container);
final View mCard = inflater
.inflate(R.layout.view_simpletotal, mContainer, false);
Animation animation = AnimationUtils.loadAnimation(getActivity(),
R.anim.card_animation);
mContainer.addView(mCard);
mCard.startAnimation(animation);
return view;
Any help would be much appreciated!