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

给一下一个地方的修改建议 #116

Open
QiuShanwen opened this issue Jun 8, 2021 · 1 comment
Open

给一下一个地方的修改建议 #116

QiuShanwen opened this issue Jun 8, 2021 · 1 comment

Comments

@QiuShanwen
Copy link

我们项目使用到了你的这个库,非常感谢您的代码解决了陈年老bug。在使用过程中,根据demo设置activity的getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);解决了切换软键盘闪屏问题,但是原本设置顶部状态栏颜色的代码失效了,所以,建议一下,在ViewUtil.isTranslucentStatus()方法中,增加一个(activity.getWindow().getAttributes().flags & WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS) != 0用于设置状态栏颜色的activity。
还有点击输入框左边+号icon控制软键盘弹出或者隐藏,KPSwitchConflictUtil.attach(),比较有局限性,像微信中,除了+号icon还有表情icon,这两个icon来回切换的时候,icon显示和软键盘弹起都会有问题,做不到跟微信那样的切换效果。不过我自己也解决了,模仿了KPSwitchConflictUtil.attach()这个方法,传参的时候,switchPanelKeyboardBtn这个参数做成不定长变量,遍历这个变量setOnClickListener(),再记录上一次点击的view的id,然后就达到了微信那样的切换效果。所以这里建议也优化一下。

@Xxj-star
Copy link

这库是不是不在维护了

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

2 participants