Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

向上推动的时候背景有填充块 #3

Open
muyishuangfeng opened this issue Oct 15, 2018 · 5 comments
Open

向上推动的时候背景有填充块 #3

muyishuangfeng opened this issue Oct 15, 2018 · 5 comments

Comments

@muyishuangfeng
Copy link

是向上推动了,但是有一个填充块(根据背景颜色来的),感觉不是很好。

@llwl1982
Copy link
Owner

什么样的填充块呢?没明白

@muyishuangfeng
Copy link
Author

就是输入框和软键盘之间有条分界线的感觉,中间有一块和背景颜色相同的大概30dp的不可编辑区域。

@llwl1982
Copy link
Owner

你说的是floatOnKeyboardLayout.setMarginKeyboard(100)这个吧?
不调用setMarginKeyboard就可以了

@muyishuangfeng
Copy link
Author

好的,我试试

@yatw
Copy link

yatw commented Sep 25, 2020

Screenshot_2020-09-25-13-21-27-120_com example floatingkb

我发现如果 softInputMode是adjustResize
就会遇到这个填充块问题,如果是adjustPan就没问题。

我已经检查过了,两种模式下的滚动距离是一样的,
您对adjustResize有任何想法会导致此问题吗?

Edit: 两种模式也沒有调用setMarginKeyboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants