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加载外部链接超级缓慢解决方案
最新推荐文章于 2023-05-09 17:27:47 发布