From c6e9f2d7ba367cc7452c493093fe54bf0501ccf4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=96=E7=A5=A5=E6=98=8E?= Date: Tue, 15 Jun 2021 16:52:10 +0800 Subject: [PATCH] update README.md. --- README.md | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 2ef0f14..042265e 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,24 @@ #### 安装教程 -1.下载app的hap包0.0.1-SNAPSHOT.hap(位于:)。 +``` +allprojects { + repositories { + maven { + url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' + } + } +} +``` + +2.在entry模块的build.gradle文件中, + +``` + dependencies { + implementation('com.gitee.chinasoft_ohos:StickyHeaders:0.0.1-SNAPSHOT'); + ...... + } +``` 在sdk5,DevEco Studio2.1 beta3下项目可直接运行 如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件, @@ -23,13 +40,14 @@ #### 使用说明 ``` - -完整调用: - - -具体用法请下载demo自行体验,demo里面有案例 + ListContainer mListContainer ; + UltimateProvider mUltimateProvider; + ... + mUltimateProvider = new UltimateProvider<>(mModelList, getContext()); + mListContainer.setItemProvider(mUltimateProvider); ``` + #### 测试信息 CodeCheck代码测试无异常 -- Gitee