Reputation: 11
when i am writing in text field then that text field getting hidden behind the keyboard. i have also tried below code add in Androidmanifest.xml android:windowSoftInputMode="stateHidden | adjustPan"
Upvotes: 0
Views: 1184
Reputation: 4574
android:windowSoftInputMode="adjustResize"
adjustResize is more preferable in your case.
"adjustResize" The activity's main window is always resized to make room for the soft keyboard on screen.
"adjustPan" The activity's main window is not resized to make room for the soft keyboard. Rather, the contents of the window are automatically panned so that the current focus is never obscured by the keyboard and users can always see what they are typing. This is generally less desirable than resizing, because the user may need to close the soft keyboard to get at and interact with obscured parts of the window.
Upvotes: 1