xiewenfeng / softboradblockedittext Goto Github PK
View Code? Open in Web Editor NEW键盘挡住输入框终极解决办法
键盘挡住输入框终极解决办法
您好,我遇到了困难希望得到帮助。请允许我描述一下,我使用了方法五,大部分页面都完美符合预期。
但是有一个页面使用了ViewPager加载五个Fragment,其中最后一个Fragment使用了RecyclerView嵌套RecyclerView的情况,当内层的RecyclerView的item有多个时,item中的EditText获取焦点打开键盘,页面没有上移,此时收起键盘页面反而上移了一段距离,并且再次打开键盘是可以发现之前上移的距离刚好可以让item中EditText不被遮挡,问题似乎是第一次打开键盘没有触发页面上移。
方法五,哪里能监听到键盘收回了呢?
试跑Demo是可以的,可是用在自己项目的时候,不知道为啥 scrollView.smoothScrollTo没有起作用。自己已经仔细对比过两边代码了,没有办法。所以来请教一下大佬有没有遇到过
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.