-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,452
  • 1
  • 25
  • 26

2 Answers2

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,772
  • 1
  • 13
  • 19
0

If the keyboard is hiding the layout I hope this might help you:

https://stackoverflow.com/a/30019136/5207572

Community
  • 1
  • 1