瀏覽代碼

优化

master
SherVegas 3 年之前
父節點
當前提交
8644e833a5
共有 22 個檔案被更改,包括 202 行新增4 行删除
  1. +2
    -2
      app/src/main/AndroidManifest.xml
  2. 二進制
      app/src/main/ic_launcher_2q3h-playstore.png
  3. +19
    -1
      app/src/main/java/com/nsgk/ruralWeb/FullscreenActivity.java
  4. +170
    -0
      app/src/main/res/drawable/ic_launcher_2q3h_background.xml
  5. +5
    -0
      app/src/main/res/mipmap-anydpi-v26/ic_launcher_2q3h.xml
  6. +5
    -0
      app/src/main/res/mipmap-anydpi-v26/ic_launcher_2q3h_round.xml
  7. 二進制
      app/src/main/res/mipmap-hdpi/ic_launcher_2q3h.png
  8. 二進制
      app/src/main/res/mipmap-hdpi/ic_launcher_2q3h_foreground.png
  9. 二進制
      app/src/main/res/mipmap-hdpi/ic_launcher_2q3h_round.png
  10. 二進制
      app/src/main/res/mipmap-mdpi/ic_launcher_2q3h.png
  11. 二進制
      app/src/main/res/mipmap-mdpi/ic_launcher_2q3h_foreground.png
  12. 二進制
      app/src/main/res/mipmap-mdpi/ic_launcher_2q3h_round.png
  13. 二進制
      app/src/main/res/mipmap-xhdpi/ic_launcher_2q3h.png
  14. 二進制
      app/src/main/res/mipmap-xhdpi/ic_launcher_2q3h_foreground.png
  15. 二進制
      app/src/main/res/mipmap-xhdpi/ic_launcher_2q3h_round.png
  16. 二進制
      app/src/main/res/mipmap-xxhdpi/ic_launcher_2q3h.png
  17. 二進制
      app/src/main/res/mipmap-xxhdpi/ic_launcher_2q3h_foreground.png
  18. 二進制
      app/src/main/res/mipmap-xxhdpi/ic_launcher_2q3h_round.png
  19. 二進制
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_2q3h.png
  20. 二進制
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_2q3h_foreground.png
  21. 二進制
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_2q3h_round.png
  22. +1
    -1
      app/src/main/res/values/strings.xml

+ 2
- 2
app/src/main/AndroidManifest.xml 查看文件

@@ -20,8 +20,8 @@
<application
android:requestLegacyExternalStorage="true"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher_white"
android:roundIcon="@mipmap/ic_launcher_white_round"
android:icon="@mipmap/ic_launcher_2q3h"
android:roundIcon="@mipmap/ic_launcher_2q3h_round"
android:label="@string/app_name"
android:supportsRtl="true"
android:usesCleartextTraffic="true"


二進制
app/src/main/ic_launcher_2q3h-playstore.png 查看文件

Before After
Width: 512  |  Height: 512  |  Size: 138 KiB

+ 19
- 1
app/src/main/java/com/nsgk/ruralWeb/FullscreenActivity.java 查看文件

@@ -58,10 +58,28 @@ public class FullscreenActivity extends AppCompatActivity {
.interceptUnkownUrl() //拦截找不到相关页面的Url AgentWeb 3.0.0 加入。
.createAgentWeb()//创建AgentWeb。
.ready()//设置 WebSettings。
.go("http://116.255.135.38:86/authenticRight/login"); //WebView载入该url地址的页面并显示。
.go("http://116.255.135.38:89/homestead/login"); //WebView载入该url地址的页面并显示。

}

@Override
protected void onPause() {
mAgentWeb.getWebLifeCycle().onPause();
super.onPause();
}

@Override
protected void onResume() {
mAgentWeb.getWebLifeCycle().onResume();
super.onResume();
}

@Override
protected void onDestroy() {
mAgentWeb.getWebLifeCycle().onDestroy();
super.onDestroy();
}

private void init() {
// mWebView = findViewById(R.id.mWebView);
WebSettings settings = mWebView.getSettings();


+ 170
- 0
app/src/main/res/drawable/ic_launcher_2q3h_background.xml 查看文件

@@ -0,0 +1,170 @@
<?xml version="1.0" encoding="utf-8"?>
<vector android:height="108dp"
android:width="108dp"
android:viewportHeight="108"
android:viewportWidth="108"
xmlns:android="http://schemas.android.com/apk/res/android">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeColor="#33FFFFFF"
android:strokeWidth="0.8" />
</vector>

+ 5
- 0
app/src/main/res/mipmap-anydpi-v26/ic_launcher_2q3h.xml 查看文件

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_2q3h_background" />
<foreground android:drawable="@mipmap/ic_launcher_2q3h_foreground" />
</adaptive-icon>

+ 5
- 0
app/src/main/res/mipmap-anydpi-v26/ic_launcher_2q3h_round.xml 查看文件

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_2q3h_background" />
<foreground android:drawable="@mipmap/ic_launcher_2q3h_foreground" />
</adaptive-icon>

二進制
app/src/main/res/mipmap-hdpi/ic_launcher_2q3h.png 查看文件

Before After
Width: 72  |  Height: 72  |  Size: 5.1 KiB

二進制
app/src/main/res/mipmap-hdpi/ic_launcher_2q3h_foreground.png 查看文件

Before After
Width: 162  |  Height: 162  |  Size: 11 KiB

二進制
app/src/main/res/mipmap-hdpi/ic_launcher_2q3h_round.png 查看文件

Before After
Width: 72  |  Height: 72  |  Size: 6.9 KiB

二進制
app/src/main/res/mipmap-mdpi/ic_launcher_2q3h.png 查看文件

Before After
Width: 48  |  Height: 48  |  Size: 3.4 KiB

二進制
app/src/main/res/mipmap-mdpi/ic_launcher_2q3h_foreground.png 查看文件

Before After
Width: 108  |  Height: 108  |  Size: 5.5 KiB

二進制
app/src/main/res/mipmap-mdpi/ic_launcher_2q3h_round.png 查看文件

Before After
Width: 48  |  Height: 48  |  Size: 4.1 KiB

二進制
app/src/main/res/mipmap-xhdpi/ic_launcher_2q3h.png 查看文件

Before After
Width: 96  |  Height: 96  |  Size: 7.8 KiB

二進制
app/src/main/res/mipmap-xhdpi/ic_launcher_2q3h_foreground.png 查看文件

Before After
Width: 216  |  Height: 216  |  Size: 16 KiB

二進制
app/src/main/res/mipmap-xhdpi/ic_launcher_2q3h_round.png 查看文件

Before After
Width: 96  |  Height: 96  |  Size: 11 KiB

二進制
app/src/main/res/mipmap-xxhdpi/ic_launcher_2q3h.png 查看文件

Before After
Width: 144  |  Height: 144  |  Size: 14 KiB

二進制
app/src/main/res/mipmap-xxhdpi/ic_launcher_2q3h_foreground.png 查看文件

Before After
Width: 324  |  Height: 324  |  Size: 30 KiB

二進制
app/src/main/res/mipmap-xxhdpi/ic_launcher_2q3h_round.png 查看文件

Before After
Width: 144  |  Height: 144  |  Size: 18 KiB

二進制
app/src/main/res/mipmap-xxxhdpi/ic_launcher_2q3h.png 查看文件

Before After
Width: 192  |  Height: 192  |  Size: 20 KiB

二進制
app/src/main/res/mipmap-xxxhdpi/ic_launcher_2q3h_foreground.png 查看文件

Before After
Width: 432  |  Height: 432  |  Size: 50 KiB

二進制
app/src/main/res/mipmap-xxxhdpi/ic_launcher_2q3h_round.png 查看文件

Before After
Width: 192  |  Height: 192  |  Size: 28 KiB

+ 1
- 1
app/src/main/res/values/strings.xml 查看文件

@@ -1,5 +1,5 @@
<resources>
<string name="app_name">抽样调查</string>
<string name="app_name">两清三化</string>
<string name="dummy_button">Dummy Button</string>
<string name="dummy_content">DUMMY\nCONTENT</string>
</resources>

Loading…
取消
儲存