UPDATE 1:
Adding android:windowSoftInputMode="adjustPan"
in manifest file solved the problem for portrait mode. But in landscape mode the problem still exists.
ORIGINAL QUESTION:
Current structure is like this: Activity -> Fragment -> Child Fragment
I did it as described here: https://stackoverflow.com/a/39467807
I have an EditText in the child fragment, when it gets focused, the keyboard pops up and the content in child fragment is disappearing. When the keyboard gets dismissed, contents of child fragment comes back. Also I noticed, the contents of child fragment is disappearing when orientation is landscape.
This is how it shows before keyboard pops up:
And when the keyboard pops up:
TextView in the parent fragment is always shown, only the contents of child fragment is gone. What could be the problem and how to solve it?