diff --git a/build.gradle b/build.gradle index a0103a3d8c599f27eba4187654a7f8ff90999208..8035bd921128d425d9cc9bfdd11c6325bcd01ae9 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 80db94ca520530525c4e982acb9cf4a2b389fc53..b882cae325bbfc776ef9dfbd0d03010480d43faf 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 5f4047564b98f96bfd9891f5e1e9811d008307a9..80ec7065c88a974dd7081a3691fce0eda5f9dd8f 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