-1

I have created a layout for a fragment which contains EditText box and one Recyclerview.whenever i click on edidtext box for inputting, whole layout disappears and when i press back button, keyboard hides and layout is again displayed.

ketankk
  • 2,578
  • 1
  • 29
  • 27

1 Answers1

1

You have to switch your activity's windowSoftInputMode flag to "adjustPan". Check official documentation for further reference.

<activity
   ...
   android:windowSoftInputMode="adjustPan"> 
</activity>

Hope it works for you.

Mayank Bhatnagar
  • 2,120
  • 1
  • 12
  • 20