webview 加载h5页面video全屏后退出滚动状态被修改的问题
2017-01-02 06:58
691 查看
webview中,我有加载了个h5,h5页面加载了一个DIV,这个DIV里面的内容是可以滚动的,我放了一系列的video标签,当我下拉到某个VIDEO,然后点击全频播放,在退出全屏播放的时候,我之前的滚动自动回到顶端了,请问这个问题怎么处理?谢谢
经过测试,是在点击全屏后,SCROLL就变到顶端了,
布局样式:
<FrameLayout
android:id="@+id/videoframe"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000"
android:visibility="gone" >
</FrameLayout>
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe_container"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<WebView
android:id="@+id/webview"
android:background="#7F7F7F"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</android.support.v4.widget.SwipeRefreshLayout>
经过测试,是在点击全屏后,SCROLL就变到顶端了,
布局样式:
<FrameLayout
android:id="@+id/videoframe"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#000000"
android:visibility="gone" >
</FrameLayout>
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe_container"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<WebView
android:id="@+id/webview"
android:background="#7F7F7F"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</android.support.v4.widget.SwipeRefreshLayout>
相关文章推荐
- android原生WebView打开h5页面加载显示不完整错乱问题
- webview 加载H5页面音乐不会自动播放问题解决方案
- Android中WebView加载H5页面JS不执行的问题
- WebView加载h5页面播放音乐或视频 返回,按锁屏键,按home键 播放不停止问题
- Android原生webView加载h5页面出现加载错乱不完全问题
- android用webview加载H5页面出现点击事件失效的问题解决
- WebView 加载网页内部video 横向全屏播放问题
- webview 加载h5页面,播放视频+全屏,实现简单封装
- 【Android】WebView加载https页面不能正常显示资源问题
- 关于webview加载网页,返回后总是刷新页面问题解决
- android,使用webView加载页面,界面空隙问题
- WebView加载Html出现有时页面显示不全问题
- android webview: 视频全屏播放按返回页面被放大的问题
- 解决安卓全屏“FLAG_FULLSCREEN”状态下“adjustResize”失效,全屏状态下WebView的输入框被软键盘挡住的问题
- 解决webview多次加载,无法准确判断页面加载完成的问题
- scrollview 与 webview的嵌套使用(加载h5页面)
- Android WebView加载页面的输入框被软键盘遮挡的问题
- WebView播放H5课件时,锁屏解锁后,页面重新绘制的问题
- Android WebView加载出现空白页面问题解决
- webview加载页面,JS方法不能加载的问题解决