Positioning EditText Above Keyboard

后端 未结 4 1067
面向向阳花
面向向阳花 2021-01-01 11:36

I have got an EditText looking like this (with \"bottom gravity\"):

\"enter

4条回答
  •  不思量自难忘°
    2021-01-01 11:53

    It happens sometimes that setting activity in manifest

    android:windowSoftInputMode="stateVisible|adjustResize" 
    android:windowSoftInputMode="adjustPan" 
    

    not working with scrolling views containing EditText.

    After research I figured out that to work in some cases parent layout has to be set android:fitsSystemWindows="true". Then native functionality of scrolling EditText above scrollbar working like a charm.

提交回复
热议问题