private class InsideWebChromeClient extends WebChromeClient { private View mCustomView; private CustomViewCallback mCustomViewCallback; @Nullable @Override public View getVideoLoadingProgressView() { FrameLayout frameLayout = new FrameLayout(WebActivity.this); frameLayout.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); return frameLayout; // return super.getVideoLoadingProgressView(); } @Override public void onShowCustomView(View view, CustomViewCallback callback) { super.onShowCustomView(view, callback); titlepart.setVisibility(View.GONE); setStatusBarVisibility(false); if (mCustomView != null) { callback.onCustomViewHidden(); return; } mCustomView = view;
webview加载外部链接超级缓慢解决方案
最新推荐文章于 2024-07-25 11:39:45 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)