Why Android CollapsingToolbarLayout + NestedScrollView doesn't scroll to the end when the soft keyboard is displayed

Using appcompat 23.1.1, you cannot scroll to the end of an EditText inside a NestedScrollView when a soft keyboard is displayed. It happens that it will scroll to the end if the keyboard were hidden.

In other words, the soft keyboard hides the last part of the text.

Variations on this question have already been asked without a definite answer. Most of them relate to appcompat 22.x, buggies. Was this fixed for 23.1? Is there a better workaround if not.

To reproduce this problem, simply create an Android Studio application, create a new project and select “Scroll Application”, and then change the TextView to EditText.

I tried adding to the manifest,

android:windowSoftInputMode="adjustResize" 

But it does not matter.

For reference, here are the project files:

https://gist.github.com/anonymous/73acc2d39f4e90c51217

Thanks for any help and suggestions.

EDIT # 1

This is still the case for appcompat-v7: 23.2.0

Edit # 2

Still there for appcompat 23.3.0 may be a mistake. see this, https://code.google.com/p/android/issues/detail?id=182362

+7
android collapsingtoolbarlayout
source share
1 answer

Adding android: fitsSystemWindows = "true" to NestedScrollView works with android: windowSoftInputMode = "adjustResize" add manifest.

+1
source share

All Articles