In my fragment I have an editText inside a scrollview and when I click on that I set it to open like this:
getActivity().getWindow().setSoftInputMode(WindowM
Try this, add this code in your AndroidManifest.xml activity
android:windowSoftInputMode="adjustPan"