Android: How to push button above soft keyboard

后端 未结 6 2070
星月不相逢
星月不相逢 2020-12-04 19:04

I\'ve got a \"save\" button which I want to push up together with the soft keyboard. So when the user clicks an EditText in my layout, then the button has to stay above the

6条回答
  •  星月不相逢
    2020-12-04 19:53

    The best way is to hide the keystroke and, if necessary, press the buttons above the keyboard

     android:windowSoftInputMode="adjustResize|stateHidden"
    

提交回复
热议问题