From e5106db268d9419d736a9362cd81e5ac5a04e552 Mon Sep 17 00:00:00 2001 From: 15296721452 <123> Date: Fri, 4 Jun 2021 11:05:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 2 +- LICENSE | 10 +++++++++- README.OPENSOURCE | 6 +++--- README.md | 8 ++++---- entry/src/main/config.json | 6 +++--- .../java/com/example/fcbtn/ExampleOhosTest.java | 1 + 6 files changed, 21 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index acec256..6c28df6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ ## 0.0.1-SNAPSHOT -* refactor: For module library +* 第一个版本完整实现了原库的全部api diff --git a/LICENSE b/LICENSE index 20bd09b..23d859a 100644 --- a/LICENSE +++ b/LICENSE @@ -1 +1,9 @@ -MIT http://opensource.org/licenses/MIT \ No newline at end of file +Licence + MIT http://opensource.org/licenses/MIT + + Developed By + El Mehdi Sakout + + Follow @medyo80 on Twitter for the latest news. + + For contact, shoot me an email at elmehdi.sakout@gmail.com \ No newline at end of file diff --git a/README.OPENSOURCE b/README.OPENSOURCE index d377557..e35ab38 100644 --- a/README.OPENSOURCE +++ b/README.OPENSOURCE @@ -4,11 +4,11 @@ "Name": "Fancybuttons", - "License": "MIT", + "License": "", - "License File": "Fancybuttons/README.md", + "License File": "", - "Version Number": "Tags v1.9.0",z + "Version Number": "Tags v1.9.0", "Upstream URL": "https://github.com/medyo/Fancybuttons", diff --git a/README.md b/README.md index 7ddb96e..3e5f2ee 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,8 @@ - 功能:可制作带icon、边框的按钮 - 项目移植状态:完成 - 调用差异:无 -- 开发版本:sdk5,DevEco Studio2.1 beta4 -- 基线版本:Tags v1.9.0 +- 开发版本:sdk5,DevEco Studio2.1 Release +- 基线版本:Release v1.9.0 #### 效果演示 @@ -33,7 +33,7 @@ allprojects { ...... } ``` -在sdk5,DevEco Studio2.1 beta4下项目可直接运行 +在sdk5,DevEco Studio2.1 Release下项目可直接运行 如无法运行,删除项目.gradle,.idea,build,gradle,build.gradle文件, 并依据自己的版本创建新项目,将新项目的对应文件复制到根目录下 #### 使用说明 @@ -72,7 +72,7 @@ xmlns:app="//schemas.huawei.com/apk/res/ohos" | fancy:fb_textFont | setCustomTextFont(String) | 字体家族的文本| | fancy:fb_textGravity | setTextGravity(Int) | 文字位置| | fancy:fb_iconResource | setIconResource(Drawable) | 绘制按钮的图标| -| fancy:fb_iconPosition | setIconPosition(int) | 图标的位置:左、右、上、下| +| fancy:fb_iconPosition | setIconPosition(int) | 图标的位置:左右上下| | fancy:fb_iconSize | setFontIconSize(int) | 图标的大小 | | fancy:fb_borderWidth | setBorderWidth(int) | 边框宽度| | fancy:fb_borderColor | setBorderColor(int) | 边框颜色| diff --git a/entry/src/main/config.json b/entry/src/main/config.json index ef1904f..fa65959 100644 --- a/entry/src/main/config.json +++ b/entry/src/main/config.json @@ -49,14 +49,14 @@ "name": "com.example.fcbtn.MainAbility", "icon": "$media:icon", "description": "$string:mainability_description", - "label": "fcbtn", + "label": "$string:app_name", "type": "page", "launchType": "standard" }, { "orientation": "unspecified", "name": "com.example.fcbtn.CodeAbility", - "label": "ProgramButtons", + "label": "$string:app_name", "description": "$string:mainability_description", "type": "page", "launchType": "standard" @@ -66,7 +66,7 @@ "name": "com.example.fcbtn.XmlAbility", "description": "$string:mainability_description", "type": "page", - "label": "XmlButtons", + "label": "$string:app_name", "launchType": "standard" } ] diff --git a/entry/src/ohosTest/java/com/example/fcbtn/ExampleOhosTest.java b/entry/src/ohosTest/java/com/example/fcbtn/ExampleOhosTest.java index a7d9ad3..6c1f69a 100644 --- a/entry/src/ohosTest/java/com/example/fcbtn/ExampleOhosTest.java +++ b/entry/src/ohosTest/java/com/example/fcbtn/ExampleOhosTest.java @@ -6,6 +6,7 @@ import org.junit.Test; import static org.junit.Assert.assertEquals; public class ExampleOhosTest { + // 纯UI组件,无法提供详细单元测试 @Test public void testBundleName() { final String actualBundleName = AbilityDelegatorRegistry.getArguments().getTestBundleName(); -- Gitee