0

i have an activity having edit texts and a date field. Everything works fine if i don't open the date picker dialog fragment. If i open datepicker fragment, when the date picker fragment dismisses, edit texts in the layout appears behind the keyboard. It doesn't move above it in the layout.

1 Answers1

-1

Please change input method if you are using some tools like the visor otherwise, put the below code in your XML file

android:windowSoftInputMode="adjustPan"
user229044
  • 232,980
  • 40
  • 330
  • 338
Vishal Sharma
  • 1,051
  • 2
  • 8
  • 15
  • already tried this, my actual problem is date picker hides keyboards when the date picker fragment dismiss the adjustPan is not working – Ebin Francis Sep 03 '18 at 03:43