I have two nested fragments. I am opening second fragment with animation. I have a WebView inside my second fragment.
I click and open my second fragment. It is displayed fine. But when I click the back button, while animating back, WebView suddenly shrinks a little and in the shrank area background colour appears. Screenshot:
My Fragment Animation Code:
transaction.setCustomAnimations(android.R.anim.slide_in_left, android.R.anim.slide_out_right, R.anim.slide_in_right, R.anim.slide_out_left);
Animation resources are from default Android resources.
Do you think what causes this?