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

旋转屏幕软键盘问题 #35

Closed
wanhuo opened this issue Sep 23, 2021 · 8 comments
Closed

旋转屏幕软键盘问题 #35

wanhuo opened this issue Sep 23, 2021 · 8 comments

Comments

@wanhuo
Copy link

wanhuo commented Sep 23, 2021

打开网页,点击会进入全屏横屏模式,此时输入法还是竖屏

@youlookwhat
Copy link
Owner

能不能录个屏,我想象不到是什么场景

@wanhuo
Copy link
Author

wanhuo commented Sep 24, 2021

能不能录个屏,我想象不到是什么场景

@wanhuo wanhuo closed this as completed Sep 24, 2021
@wanhuo wanhuo reopened this Sep 24, 2021
@youlookwhat
Copy link
Owner

这个游戏是一个网页游戏吗,能不能把链接给我试试,或者我用demo里的百度搜索,把它弄成横屏输入,你看是不是符合场景

@youlookwhat
Copy link
Owner

我遇到过你这种情况,我们公司的人开发h5的时候遇到过。
他们是不小心触发了onShowCustomView这个方法,但这个一般是打开视频的时候才会触发。你这边应该是不小心触发了onHideCustomView,这个应该是视频播放退出才会触发,但是不知道为什么会触发。

我可以做一个方法,禁用掉这个方法的调用,不过你们最好是分析到为什么会触发是不是做了特别的处理

@youlookwhat
Copy link
Owner

最好是把链接给我测试一下,不然我不知道这种方法是否可行 @wanhuo

@youlookwhat
Copy link
Owner

这样处理后,屏幕就在视频全屏播放后退出时,不会再竖屏了

@youlookwhat
Copy link
Owner

依赖最新的版本

implementation 'com.github.youlookwhat:ByWebView:1.1.5'

然后在打开网页前设置byWebView.setFixScreenPortrait(true);试试

@wanhuo
Copy link
Author

wanhuo commented Sep 25, 2021

js调用了设置全屏会引发这个问题,辛苦辛苦

@wanhuo wanhuo closed this as completed Sep 25, 2021
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