修改常见问题的url
This commit is contained in:
parent
f9cc2cdfbe
commit
196ad646e5
@ -3,7 +3,7 @@ apply plugin: 'com.android.application'
|
||||
android {
|
||||
compileSdkVersion 29
|
||||
buildToolsVersion '29.0.2'
|
||||
// ndkVersion '23.0.7123448'
|
||||
ndkVersion '23.0.7123448'
|
||||
|
||||
defaultConfig {
|
||||
applicationId "com.navinfo.outdoor"
|
||||
|
@ -123,9 +123,9 @@ public class IssueFragment extends BaseFragment implements View.OnClickListener
|
||||
issueProblemAdapter.setOnIssueClick(new IssueProblemAdapter.OnIssueClick() {
|
||||
@Override
|
||||
public void onClick(int pos) {
|
||||
HashMap<String, String> paramMap = new HashMap<>();
|
||||
paramMap.put("id",pos+"");
|
||||
intint2WebActivity(HttpInterface.MSG_CONTENT, paramMap);
|
||||
Intent issueWeb = new Intent(getActivity(), FragmentManagement.class);
|
||||
issueWeb.putExtra("tag",16);
|
||||
startActivity(issueWeb);
|
||||
}
|
||||
|
||||
});
|
||||
|
@ -2,13 +2,24 @@ package com.navinfo.outdoor.fragment;
|
||||
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.webkit.WebSettings;
|
||||
import android.webkit.WebView;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.Toast;
|
||||
|
||||
import com.lzy.okgo.model.HttpParams;
|
||||
import com.navinfo.outdoor.R;
|
||||
import com.navinfo.outdoor.activity.WebActivity;
|
||||
import com.navinfo.outdoor.api.Constant;
|
||||
import com.navinfo.outdoor.base.BaseFragment;
|
||||
import com.navinfo.outdoor.bean.RichTextBean;
|
||||
import com.navinfo.outdoor.http.Callback;
|
||||
import com.navinfo.outdoor.http.OkGoBuilder;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
@ -17,21 +28,6 @@ import com.navinfo.outdoor.base.BaseFragment;
|
||||
public class IssueWebFragment extends BaseFragment implements View.OnClickListener {
|
||||
|
||||
private ImageView ivIssueWebFinish;
|
||||
private String content = "<div>\n" +
|
||||
"<h2>定义和用法</h2>\n" +
|
||||
"\n" +
|
||||
"<p>\n" +
|
||||
"\t<img src=\"https://exp-picture.cdn.bcebos.com/560be432939c2cf72dff4caa452c5b1b1fde12e1.jpg?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_500%2Climit_1%2Fformat%2Cf_jpg%2Fquality%2Cq_80\">\n" +
|
||||
"</p>\n" +
|
||||
"\n" +
|
||||
"<p style=\"color: red; margin-left: 20px\"><style> 标签用于为 HTML 文档定义样式信息。</p>\n" +
|
||||
"\n" +
|
||||
"<p style=\"background-color: lightblue; margin-left: 20px\">在 style 中,您可以规定在浏览器中如何呈现 HTML 文档。</p>\n" +
|
||||
"\n" +
|
||||
"<p style=\"font-family: verdana; margin-left: 20px\">type 属性是必需的,定义 style 元素的内容。唯一可能的值是 \"text/css\"。</p>\n" +
|
||||
"\n" +
|
||||
"<p style=\"font-size: 20px; margin-left: 20px\">style 元素位于 head 部分中。</p>\n" +
|
||||
"</div>";
|
||||
private WebView issueWebView;
|
||||
|
||||
public static IssueWebFragment newInstance(Bundle bundle) {
|
||||
@ -58,10 +54,10 @@ public class IssueWebFragment extends BaseFragment implements View.OnClickListen
|
||||
issueWebView.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW);
|
||||
}
|
||||
settings.setBuiltInZoomControls(false);
|
||||
content = content.replace("<img", "<img style='max-width: 100%'");
|
||||
issueWebView.loadDataWithBaseURL(null, content, "text/html", "utf-8", null);
|
||||
issueWebView.loadUrl("http://172.23.139.4:10001/#/serveclause");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
switch (v.getId()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user