Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is adjustPan needed for EditText based rows? #29

Open
ljdelavega opened this issue Nov 17, 2016 · 0 comments
Open

Why is adjustPan needed for EditText based rows? #29

ljdelavega opened this issue Nov 17, 2016 · 0 comments

Comments

@ljdelavega
Copy link

In your README you have this:
Attention! If you use EditText based form elements, make sure you set "windowSoftInputMode" to "adjustPan"

Do it in your manifest:


Or programmatically in the onCreate method of your activity

@OverRide
protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

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

}

Why is this needed?
I have run into some issues due to "adjustPan" (like rows covering the system status bar and random focus issues with soft keyboards) and would like to use the "adjustResize" option but when I try it, the keyboard just flashes up and down and I can't enter anything.

Is there a special reason why we must use "adjustPan"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant