diff --git a/README.md b/README.md index a4d6618218fdafa9237c4978e64e22cfc38ab242..8f80afcf8e1699c1e8eb3bcf7b40229d257db9ab 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ 1.在项目根目录下的build.gradle文件中, -```java +```txt allprojects { repositories { maven { @@ -28,7 +28,7 @@ allprojects { 2.在entry模块的build.gradle文件中, -```java +```txt dependencies { implementation('com.gitee.chinasoft_ohos:DragListView:0.0.1-SNAPSHOT') ...... @@ -39,7 +39,7 @@ allprojects { library中自定义了几个控件,如果有需要ListContainer嵌套ListContainer不同方向滑动,例如外部横向滑动,内部纵向滑动,外部的ListContainer可用BaseListContainer,在BaseListContainer中已处理掉滑动冲突 -```java +```txt @Override public void onDragUpdate(Component component, DragInfo dragInfo) { // dragInfo.xOffset为正数代表正在向右滑 负数则为向左滑 @@ -51,7 +51,7 @@ library中自定义了几个控件,如果有需要ListContainer嵌套ListConta 如果需要支持左右滑动请在外部调用一下代码并设置为true -```java +```txt public void setSlide(boolean isB) { this.isSlide = isB; } @@ -59,7 +59,7 @@ library中自定义了几个控件,如果有需要ListContainer嵌套ListConta 若是在ListContainer的Item中使用,请将外部ListContainer设置进来,此处作用是在左右滑动时可以将外部ListContainer的上下滑动屏蔽,避免上下左右一起滑动 -```java +```txt public void setListContainer(ListContainer listContainer) { this.listContainer = listContainer; } @@ -69,7 +69,7 @@ public void setListContainer(ListContainer listContainer) { component用来判断是否与上一个滑动的一致,一致就将上一个还原,否则就不执行本次滑动,action用来判断本次滑动手势 -```java +```txt public void setObserver(MyObserver observer) { this.observer = observer; } @@ -87,7 +87,7 @@ public interface MyObserver { 另外,可以在Java类中设置按下和抬起的背景 -```java +```txt public void setStartElement(ShapeElement element) { mGrayShapeElement = element; } diff --git a/build.gradle b/build.gradle index 6d84aa70c88e0c7efda1fd4564268fe1d713ab0e..7422686a840b95b44a7027f072efa315185d1f24 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.huawei.ohos:hap:2.4.2.7' + classpath 'com.huawei.ohos:hap:2.4.4.2' classpath 'com.huawei.ohos:decctest:1.0.0.6' } } diff --git a/sample/src/main/config.json b/sample/src/main/config.json index a4d76d66c5471649f7920b3d64f24ac74029a645..77febb7193d0619cde92e559c95b13887aed2bd4 100644 --- a/sample/src/main/config.json +++ b/sample/src/main/config.json @@ -3,12 +3,13 @@ "bundleName": "com.woxthebox.draglistview.sample", "vendor": "woxthebox", "version": { - "code": 1, + "code": 1000000, "name": "1.0" }, "apiVersion": { "compatible": 5, - "target": 5 + "target": 5, + "releaseType": "Release" } }, "deviceConfig": {}, @@ -39,7 +40,7 @@ "name": "com.woxthebox.draglistview.sample.MainAbility", "icon": "$media:icon", "description": "$string:mainability_description", - "label": "DragListView", + "label": "$string:app_name", "type": "page", "launchType": "standard", "configChanges": [