From 7101d0e35c03656e92f3ad3366e573482176afd9 Mon Sep 17 00:00:00 2001 From: wds Date: Wed, 2 Jun 2021 09:06:44 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=98=E6=88=91=E7=9A=84=E2=80=99=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/misc.xml | 2 +- app/build.gradle | 2 +- app/src/main/AndroidManifest.xml | 1 + .../outdoor/activity/FragmentManagement.java | 16 + .../outdoor/fragment/AboutFragment.java | 2 - .../outdoor/fragment/ContactFragment.java | 50 ++- .../outdoor/fragment/GatheringFragment.java | 31 +- .../outdoor/fragment/MapDownloadFragment.java | 18 +- .../outdoor/fragment/MineFragment.java | 11 +- .../navinfo/outdoor/fragment/SetFragment.java | 19 +- .../fragment/UserAttestationFragment.java | 76 +++++ .../outdoor/fragment/UserDataFragment.java | 29 +- .../outdoor/fragment/WithdrawFragment.java | 18 +- .../res/drawable/switch_custom_thumb_off.xml | 8 + .../res/drawable/switch_custom_thumb_on.xml | 8 + .../drawable/switch_custom_thumb_selector.xml | 5 + .../res/drawable/switch_custom_track_off.xml | 9 + .../res/drawable/switch_custom_track_on.xml | 10 + .../drawable/switch_custom_track_selector.xml | 5 + app/src/main/res/layout/about_fragment.xml | 4 +- app/src/main/res/layout/contact_fragment.xml | 42 ++- .../res/layout/fragment_capacity_eva_web.xml | 80 +++-- .../main/res/layout/gathering_fragment.xml | 146 ++++++++- .../main/res/layout/map_download_fragment.xml | 69 +++- app/src/main/res/layout/mine_fragment.xml | 7 +- app/src/main/res/layout/set_fragment.xml | 213 ++++++++++++- .../res/layout/user_attestation_fragment.xml | 139 +++++++++ .../main/res/layout/user_data_fragment.xml | 8 +- app/src/main/res/layout/withdraw_fragment.xml | 294 +++++++++++++++++- app/src/main/res/values/strings.xml | 2 +- 30 files changed, 1234 insertions(+), 90 deletions(-) create mode 100644 app/src/main/java/com/navinfo/outdoor/fragment/UserAttestationFragment.java create mode 100644 app/src/main/res/drawable/switch_custom_thumb_off.xml create mode 100644 app/src/main/res/drawable/switch_custom_thumb_on.xml create mode 100644 app/src/main/res/drawable/switch_custom_thumb_selector.xml create mode 100644 app/src/main/res/drawable/switch_custom_track_off.xml create mode 100644 app/src/main/res/drawable/switch_custom_track_on.xml create mode 100644 app/src/main/res/drawable/switch_custom_track_selector.xml create mode 100644 app/src/main/res/layout/user_attestation_fragment.xml diff --git a/.idea/misc.xml b/.idea/misc.xml index b6ea2b1..7bfef59 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + diff --git a/app/build.gradle b/app/build.gradle index e88d242..c2c1f0c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'com.android.application' android { compileSdkVersion 30 buildToolsVersion "30.0.3" - ndkVersion '23.0.7123448' + //ndkVersion '23.0.7123448' defaultConfig { applicationId "com.example.myapplication" diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 1c62a75..f6bf5f0 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -4,6 +4,7 @@ + 定义和用法\n" + + "\n" + + "

\n" + + "\t\n" + + "

\n" + + "\n" + + "

<style> 标签用于为 HTML 文档定义样式信息。

\n" + + "\n" + + "

在 style 中,您可以规定在浏览器中如何呈现 HTML 文档。

\n" + + "\n" + + "

type 属性是必需的,定义 style 元素的内容。唯一可能的值是 \"text/css\"。

\n" + + "\n" + + "

style 元素位于 head 部分中。

\n" + + ""; + private WebView nWebView; + @Override protected int getLayout() { return R.layout.contact_fragment; @@ -20,5 +47,26 @@ public class ContactFragment extends BaseFragment { @Override protected void initView() { super.initView(); + ivContact = findViewById(R.id.iv_contact); + ivContact.setOnClickListener(this); + nWebView = findViewById(R.id.news_webView); + nWebView.getSettings().setBlockNetworkImage(false); + WebSettings settings = nWebView.getSettings(); + settings.setJavaScriptEnabled(true); + if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP) { + nWebView.getSettings().setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_ALLOW); + } + settings.setBuiltInZoomControls(false); + content = content.replace(" + + + + diff --git a/app/src/main/res/drawable/switch_custom_thumb_on.xml b/app/src/main/res/drawable/switch_custom_thumb_on.xml new file mode 100644 index 0000000..179020a --- /dev/null +++ b/app/src/main/res/drawable/switch_custom_thumb_on.xml @@ -0,0 +1,8 @@ + + + + + diff --git a/app/src/main/res/drawable/switch_custom_thumb_selector.xml b/app/src/main/res/drawable/switch_custom_thumb_selector.xml new file mode 100644 index 0000000..8b59519 --- /dev/null +++ b/app/src/main/res/drawable/switch_custom_thumb_selector.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/switch_custom_track_off.xml b/app/src/main/res/drawable/switch_custom_track_off.xml new file mode 100644 index 0000000..bc7bbf1 --- /dev/null +++ b/app/src/main/res/drawable/switch_custom_track_off.xml @@ -0,0 +1,9 @@ + + + + + + diff --git a/app/src/main/res/drawable/switch_custom_track_on.xml b/app/src/main/res/drawable/switch_custom_track_on.xml new file mode 100644 index 0000000..4cb0058 --- /dev/null +++ b/app/src/main/res/drawable/switch_custom_track_on.xml @@ -0,0 +1,10 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/switch_custom_track_selector.xml b/app/src/main/res/drawable/switch_custom_track_selector.xml new file mode 100644 index 0000000..4129576 --- /dev/null +++ b/app/src/main/res/drawable/switch_custom_track_selector.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/about_fragment.xml b/app/src/main/res/layout/about_fragment.xml index 6b7642c..db8b67d 100644 --- a/app/src/main/res/layout/about_fragment.xml +++ b/app/src/main/res/layout/about_fragment.xml @@ -1,8 +1,8 @@ + android:layout_height="match_parent" + xmlns:app="http://schemas.android.com/apk/res-auto"> - + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_capacity_eva_web.xml b/app/src/main/res/layout/fragment_capacity_eva_web.xml index a2f53c3..dba1359 100644 --- a/app/src/main/res/layout/fragment_capacity_eva_web.xml +++ b/app/src/main/res/layout/fragment_capacity_eva_web.xml @@ -25,39 +25,55 @@ android:src="@drawable/ic_baseline_arrow" /> - - - - -