I have a layout that has an EditText and a button. I <include> in my main layout.
I have a weird problem with layout and rotation. It seems to be duplicated when the device (physical) is rotated, messing up the text and layout.
Here it first opens, after adding some additional distortion:

DSC_0013 is in EditText when the fragment starts.
Then, I rotate the phone and add a few different distortions:

And you can clearly see the problem. At first I thought it was just an EditText intervention. But if I add enough text to create a new line:

I see that the button is also messed up.
I override onSaveInstanceState , but in it I do not touch EditText or its value, it is strictly used for something else.
What is happening and how to fix it?
Steven schoen
source share