criver.to
criver.to

Reputation: 540

How to keep fixed footer in Android webview from covering input field when soft keyboard comes up?

I have a webview that is a react app (not react native). It is a login page with two input fields and a fixed footer.

When the input is focused the footer comes up and overlaps the input field hiding the password input field.

What can I do so the footer stays under the keyboard?

enter image description here

Upvotes: 1

Views: 1184

Answers (1)

Rajesh N
Rajesh N

Reputation: 6693

getActivity().getWindow().setSoftInputMode(
                WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);

set this onCreate method of your activity

Upvotes: 2

Related Questions