liangjingkanji / soft-input-event Goto Github PK
View Code? Open in Web Editor NEWAndroid软键盘遮挡/平滑动画最佳解决方案 Solution for keyboard cover in/smooth animation
License: Apache License 2.0
Android软键盘遮挡/平滑动画最佳解决方案 Solution for keyboard cover in/smooth animation
License: Apache License 2.0
CoordinatorLayout 布局里面设置了layout_behavior 华为畅享系列手机只要输入换行符,输入框就已经是隐藏键盘状态了,但是键盘还是在现实
希望在输入过程中有回车换行也不要下移输入框体验很不好
fork仓库并复现问题可以快速解决, 猜测只会让问题晦涩难懂, 耽误所有人时间
异常堆栈信息或者手机截图/视频(拖拽到输入框即可上传)
如题,能实现比如输入框软键盘弹出后,在软键盘上方仅做一个小型布局提示输入注意事项。但是整体布局只是覆盖不滚动。谢谢
输入框edittext放在屏幕上方即可明显复现,有标题栏的话看的更清楚
输入框edittext放在屏幕上方即可明显复现,有标题栏的话看的更清楚。
在你的demo上修改布局,把输入框放到recyclerview的上面,此时输入框在顶部,按理说是不需要因为弹出键盘而被拉下来的。
不然就会出现类似这种很奇怪的页面
我正在编辑身份证号这一栏,本来这个输入框是在上面的,不需要被输入框拉下来,这样上面多出了一块不正常的空白区域,使用recyclerview或scrollview+LinearLayout都会有同样的问题
fork仓库并复现问题可以快速解决, 猜测只会让问题晦涩难懂, 耽误所有人时间
异常堆栈信息或者手机截图/视频(拖拽到输入框即可上传)
试了下Demo,在华为Mate 30 Pro(鸿蒙2.0 & Android 10)上无效,vivo x60(Android 11)可用。
MIUI 13.0.6
Android 12
setWindowSoft Input(binding.price EditText,binding.root) I use the above code for a button and it works fine, but when I click on another edittexe in the same fragment, the screen scrolls completely.
How can we solve this?
https://i.hizliresim.com/ssn2fzz.gif
应用启动,在BottomSheetDialogFragment中调用setWindowSoftInput,发现isSupportInsetsFiled为true。应用杀掉,再启动,如果在Fragment或Activity中调用setWindowSoftInput,发现isSupportInsetsFiled为false。
麻烦大佬看一下,膜拜!!!
这个库会自动添加google material的dependency
移除该dependency,要不然软件之间暴增400k
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.