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.
Asked
Active
Viewed 41 times
-1
-
can you post screenshots and code?? – Dave Ranjan Mar 06 '16 at 06:47
1 Answers
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