diff --git a/CHANGELOG.md b/CHANGELOG.md index 49c95a16070d4090e6af5f330de41cb6dd3bb29e..49b66c65e4cb2c3e5f4221a13e0b00df1e9ed19c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 1.0.2 + +增加组件效果动态图 + # 1.0.0 实现: diff --git a/README.md b/README.md index f1e8a5ee633d05a9e22fe2cc69c50b3f5919c6bd..f383bc985b545f8bb4485c88f8230c0cb7a42e2e 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ - 网络异常视图 - 内容视图 + + ## 依赖 ``` allprojects{ @@ -13,7 +15,7 @@ allprojects{ mavenCentral() } } -implementation 'io.openharmony.tpc.thirdlib:MultipleStatusView:1.0.1' +implementation 'io.openharmony.tpc.thirdlib:MultipleStatusView:1.0.2' ``` ## 集成 diff --git a/gifs/MultipleStatueView.gif b/gifs/MultipleStatueView.gif new file mode 100644 index 0000000000000000000000000000000000000000..44a5725b0aa3446eb259bf62d432f5c7fe2fabcf Binary files /dev/null and b/gifs/MultipleStatueView.gif differ diff --git a/multiple_status_view/src/main/java/com/classic/common/MultipleStatusView.java b/multiple_status_view/src/main/java/com/classic/common/MultipleStatusView.java index 5779176779892cf70c8b0cbf6a598f66b37312fc..1c6cd0ca880c193da59ba7c0f77f085c6555053f 100644 --- a/multiple_status_view/src/main/java/com/classic/common/MultipleStatusView.java +++ b/multiple_status_view/src/main/java/com/classic/common/MultipleStatusView.java @@ -74,35 +74,35 @@ public class MultipleStatusView extends DependentLayout { if (isPresent) { viewString = attrs.getAttr(VIEW_EMPTY).get().getStringValue(); if (viewString.contains(":")) { - mEmptyViewResId = Integer.valueOf(viewString.split(":")[1]); + mEmptyViewResId = Integer.parseInt(viewString.split(":")[1]); } } isPresent = attrs.getAttr(VIEW_CONTENT).isPresent(); if (isPresent) { viewString = attrs.getAttr(VIEW_CONTENT).get().getStringValue(); if (viewString.contains(":")) { - mContentViewResId = Integer.valueOf(viewString.split(":")[1]); + mContentViewResId = Integer.parseInt(viewString.split(":")[1]); } } isPresent = attrs.getAttr(VIEW_ERROR).isPresent(); if (isPresent) { viewString = attrs.getAttr(VIEW_ERROR).get().getStringValue(); if (viewString.contains(":")) { - mErrorViewResId = Integer.valueOf(viewString.split(":")[1]); + mErrorViewResId = Integer.parseInt(viewString.split(":")[1]); } } isPresent = attrs.getAttr(VIEW_LOADING).isPresent(); if (isPresent) { viewString = attrs.getAttr(VIEW_LOADING).get().getStringValue(); if (viewString.contains(":")) { - mLoadingViewResId = Integer.valueOf(viewString.split(":")[1]); + mLoadingViewResId = Integer.parseInt(viewString.split(":")[1]); } } isPresent = attrs.getAttr(VIEW_NETWORK).isPresent(); if (isPresent) { viewString = attrs.getAttr(VIEW_NETWORK).get().getStringValue(); if (viewString.contains(":")) { - mNoNetworkViewResId = Integer.valueOf(viewString.split(":")[1]); + mNoNetworkViewResId = Integer.parseInt(viewString.split(":")[1]); } } }