SoftKeyboardDemo
类似于直播类型的弹出键盘,不会挤压整体布局
博客地址
注意打开应用后,要点击第一个输入框,这是因为先要获取一次键盘的高度,不然首先点击第二个输入框,会出现整体布局挤压的现象。
<div align="center">
<img src="https://github.com/DyncKathline/SoftKeyboardDemo/blob/master/screenshots/screenshot2.png" width = "300" height = "500" alt="图片1" align=center />
<img src="https://github.com/DyncKathline/SoftKeyboardDemo/blob/master/screenshots/screenshot1.png" width = "300" height = "500" alt="图片2" align=center />
</div>
<div align="center">
<img src="https://github.com/DyncKathline/SoftKeyboardDemo/blob/master/screenshots/screenshot3.png" width = "300" height = "500" alt="图片3" align=center />
<img src="https://github.com/DyncKathline/SoftKeyboardDemo/blob/master/screenshots/Screenshot.gif" width = "300" height = "500" alt="图片4" align=center />
</div>