Skip to content

Commit 8089446

Browse files
sonar fixes & readme update
1 parent 0458ca2 commit 8089446

File tree

7 files changed

+10
-61
lines changed

7 files changed

+10
-61
lines changed

.idea/compiler.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/gradle.xml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.idea/modules.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SharpView
22

3-
custom TextView,LinearLayout,RelativeLayout with sharp
3+
It is a HMOS Library which provides a Custom TextView,LinearLayout,RelativeLayout with sharpView
44

55
[![.github/workflows/main.yml](https://github.com/applibgroup/SharpView/actions/workflows/main.yml/badge.svg)](https://github.com/applibgroup/SharpView/actions/workflows/main.yml)
66
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=applibgroup_SharpView&metric=alert_status)](https://sonarcloud.io/dashboard?id=applibgroup_SharpView)
@@ -34,15 +34,15 @@ Gradient colors are only valid when sharpSize is 0 (no sharp corners)
3434

3535
## Dependency
3636
1. For using SharpView module in sample app, include the source code and add the below dependencies in entry/build.gradle to generate hap/support.har.
37-
```
37+
```groovy
3838
dependencies {
3939
implementation project(':sharpview')
4040
implementation fileTree(dir: 'libs', include: ['*.har'])
4141
testCompile 'junit:junit:4.12'
4242
}
4343
```
4444
2. For using SharpView in separate application using har file, add the har file in the entry/libs folder and add the dependencies in entry/build.gradle file.
45-
```
45+
```groovy
4646
dependencies {
4747
implementation fileTree(dir: 'libs', include: ['*.har'])
4848
testCompile 'junit:junit:4.12'
@@ -53,7 +53,7 @@ Gradient colors are only valid when sharpSize is 0 (no sharp corners)
5353
## Usage
5454

5555
* 1.In the XML
56-
```java
56+
```xml
5757

5858
<com.zhaoxing.view.sharpview.SharpEditText
5959
ohos:width="match_content"
@@ -77,10 +77,8 @@ Gradient colors are only valid when sharpSize is 0 (no sharp corners)
7777
app:arrowDirection="right"
7878
app:backgroundColor="#FF000000"
7979
app:relativePosition="0.9"
80-
app:sharpSize="15vp">
81-
82-
</com.zhaoxing.view.sharpview.SharpLinearLayout>
83-
80+
app:sharpSize="15vp"
81+
/>
8482

8583
```
8684

entry/src/ohosTest/java/com/zhaoxing/view/sharpview/SharpViewRenderProxyTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ public void setUp() {
4343
context = AbilityDelegatorRegistry.getAbilityDelegator().getAppContext();
4444
attrSet = new AttrSet() {
4545
@Override
46-
public Optional<String> getStyle() {
47-
return Optional.empty();
46+
public int getLength() {
47+
return 0;
4848
}
4949

5050
@Override
51-
public int getLength() {
52-
return 0;
51+
public Optional<String> getStyle() {
52+
return Optional.empty();
5353
}
5454

5555
@Override

0 commit comments

Comments
 (0)