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

适配ToolBar adjustResize不生效的问题 #13

Open
w4lle opened this issue Mar 28, 2016 · 3 comments
Open

适配ToolBar adjustResize不生效的问题 #13

w4lle opened this issue Mar 28, 2016 · 3 comments
Assignees

Comments

@w4lle
Copy link

w4lle commented Mar 28, 2016

适配Toolbar使用的
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
会导致adjustResize不生效的问题,可以通过这种方法解决
http://stackoverflow.com/questions/21092888/windowsoftinputmode-adjustresize-not-working-with-translucent-action-navbar

使用android:fitsSystemWindows="true"可以生效,但是会导致下图的问题,多出了一个间距
qq20160328-0 2x

w4lle pushed a commit to w4lle/JKeyboardPanelSwitch that referenced this issue Mar 28, 2016
@w4lle w4lle mentioned this issue Mar 28, 2016
@kongnanlive
Copy link

参考下ChattingResolvedFullScreenActivity这个类,跟android:fitsSystemWindows="true"是类似问题。
我现在遇到的问题是,第一次的时候不知道键盘的实际高度,捕获的键盘高度有偏差,第二次就好了。

@Jacksgong Jacksgong self-assigned this Mar 29, 2016
@Jacksgong
Copy link
Owner

💯 @w4lle 我在你的RP中评论了,我看你应该是针对该问题解决的方案,很赞!

不过希望你按照我RP中的评论抽空的时候进行相关的调整,有任何问题及时提出,也并不着急,抽空的时候整就行。

@wangshaolei
Copy link

@w4lle hi,你好,问一下,我没有使用toolbar,我是配合https://github.com/niorgai/StatusBarCompat 这个库的 translucentStatusBar 这个属性,发现键盘监听不到。 我用的是 JKeyboardPanelSwitch的老代码。输入框也不跟随,看了你1楼的的链接,试了好像并没有效果。请指点。

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

4 participants