Window Soft Input Mode ConstraintLayout

前端 未结 3 1473
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 02:12

Earlier there was no problem with soft input mode, but after including ConstraintLayout, content of fragment doesn\'t move up when the keyboard appears.

Man

3条回答
  •  迷失自我
    2021-02-04 02:39

    I'm not sure in what Activity your fragment is located but if it's in for example InitChatActivity, just add adjustResize to your manifest, and wrap your ConstraintLayout in ScrollView or NestedScrollView:

    android:windowSoftInputMode="stateHidden|adjustResize"
    

提交回复
热议问题