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" /> - - - - -