SyntaxFix
Write A Post
Hire A Developer
Questions
You should use
android:windowSoftInputMode="adjustPan|stateHidden"
in your AndroidManifest.xml file where you are declaring your activity. This will adjust your layout contents, when keyboard is shown in the layout.
AndroidManifest.xml