From 7b7a90bb5af7bbe453a9e351f48a789fd2ce4ab4 Mon Sep 17 00:00:00 2001 From: chenjianpeng Date: Thu, 28 Oct 2021 15:42:53 +0800 Subject: [PATCH] =?UTF-8?q?1,=E4=BF=AE=E6=94=B9=E7=BD=91=E9=A1=B5=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 4 ++-- .../twinklingrefreshlayout/WebAbility.java | 14 ++++---------- entry/src/main/resources/base/element/string.json | 2 +- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/build.gradle b/build.gradle index a0103a3..8035bd9 100644 --- a/build.gradle +++ b/build.gradle @@ -19,8 +19,8 @@ buildscript { jcenter() } dependencies { - classpath 'com.huawei.ohos:hap:2.4.5.5' - classpath 'com.huawei.ohos:decctest:1.2.5.1' + classpath 'com.huawei.ohos:hap:3.0.3.4' + classpath 'com.huawei.ohos:decctest:1.2.6.0' } } diff --git a/entry/src/main/java/com/lcodecore/twinklingrefreshlayout/WebAbility.java b/entry/src/main/java/com/lcodecore/twinklingrefreshlayout/WebAbility.java index 80db94c..b882cae 100644 --- a/entry/src/main/java/com/lcodecore/twinklingrefreshlayout/WebAbility.java +++ b/entry/src/main/java/com/lcodecore/twinklingrefreshlayout/WebAbility.java @@ -50,16 +50,6 @@ public class WebAbility extends Ability implements Component.TouchEventListener loadingView.setSize(45); loadingView.stopAnimation(); - new EventHandler(EventRunner.getMainEventRunner()).postTask(new Runnable() { - @Override - public void run() { - AnimatorProperty animatorProperty = loadingView.createAnimatorProperty(); - animatorProperty.setDuration(500).setDelay(100).scaleX(0).scaleY(0); - animatorProperty.start(); - mWebView.setVisibility(Component.VISIBLE); - } - },4000); - loadingView.setScaleX(0.9f); loadingView.setScaleY(0.9f); @@ -80,6 +70,10 @@ public class WebAbility extends Ability implements Component.TouchEventListener public void onPageLoaded(WebView webview, String url) { super.onPageLoaded(webview, url); // 页面加载结束后自定义处理 + AnimatorProperty animatorProperty = loadingView.createAnimatorProperty(); + animatorProperty.setDuration(500).setDelay(100).scaleX(0).scaleY(0); + animatorProperty.start(); + mWebView.setVisibility(Component.VISIBLE); } @Override diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index 5f40475..80ec706 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -122,7 +122,7 @@ }, { "name": "weburl", - "value": "https://dribbble.com/shots" + "value": "https://developer.huawei.com/cn/" } ] } \ No newline at end of file -- Gitee