Browse Source

1.修复图片加载问题

tags/0.0.14+8
“yanghuaxuan” 3 years ago
parent
commit
e891c3a620
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      android/src/main/java/cn/zhios/zhiying_base_widget/WebViewActivity.java

+ 3
- 0
android/src/main/java/cn/zhios/zhiying_base_widget/WebViewActivity.java View File

@@ -117,7 +117,10 @@ public class WebViewActivity extends AppCompatActivity {


settings.setGeolocationEnabled(true); settings.setGeolocationEnabled(true);


settings.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);

webview.setVerticalScrollBarEnabled(false); webview.setVerticalScrollBarEnabled(false);

// //
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { // if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
// webview.setLayerType(View.LAYER_TYPE_SOFTWARE, null); // webview.setLayerType(View.LAYER_TYPE_SOFTWARE, null);


Loading…
Cancel
Save