File tree Expand file tree Collapse file tree
entry/src/ohosTest/java/com/github/kshitijjain/instalikesample Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ instaLikeView.start();
6262
6363``` java
6464mInstaLikeView. start(); // Start Animation
65- instaLikeView. setLikeResource(ResourceTable . Media_icon ); // Set Like Drawable
65+ instaLikeView. setLikeResource(ResourceTable . Media_icon ); // Set Like Resource
6666instaLikeView. setLikeDrawable(ElementScatter . getInstance(MainAbilitySlice . this ). parse(ResourceTable . Graphic_img_heart )); // Set Like Drawable
6767instaLikeView. setLikeColor(colorMatrix); // Set Like Color
6868```
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ buildscript {
2323 }
2424 dependencies {
2525 classpath ' com.huawei.ohos:hap:2.4.4.2'
26- classpath ' com.huawei.ohos:decctest:1.2.4.0 '
26+ classpath ' com.huawei.ohos:decctest:1.0.0.7 '
2727 classpath " org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3"
2828 }
2929}
Original file line number Diff line number Diff line change @@ -75,8 +75,8 @@ public void testImageHeart() {
7575 @ Test
7676 public void testImageHeartLayoutConfig () {
7777 instaLikeView = new InstaLikeView (context , attrSet );
78- assertEquals (160 , instaLikeView .getImageHeart ().getLayoutConfig ().width );
79- assertEquals (160 , instaLikeView .getImageHeart ().getLayoutConfig ().height );
78+ assertEquals (240 , instaLikeView .getImageHeart ().getLayoutConfig ().width );
79+ assertEquals (240 , instaLikeView .getImageHeart ().getLayoutConfig ().height );
8080 }
8181
8282 @ Test
You can’t perform that action at this time.
0 commit comments