Skip to content

Commit 4bd5ad1

Browse files
Minor ReadMe.md changes
1 parent d18aaa1 commit 4bd5ad1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ A HMOS library to add "like" animation similar to instagram.
2323
}
2424
```
2525

26-
### Usage
26+
## Usage
2727

2828
#### Include following code in your layout:
2929

@@ -46,13 +46,13 @@ InstaLikeView instaLikeView = (InstaLikeView) findComponentById(ResourceTable.Id
4646
// To start animation
4747
instaLikeView.start();
4848
```
49-
##### Supported xml attributes:
49+
#### Supported xml attributes:
5050
```xml
5151
app:likeSize="$float:instalike_image_size" // Set Like Size (Default 80vp)
5252
app:likeSrc="@drawable/img_burger" // Set Like Drawable
5353
```
5454

55-
##### Other supported methods:
55+
#### Other supported methods:
5656

5757
```java
5858
mInstaLikeView.start(); // Start Animation
@@ -61,11 +61,11 @@ instaLikeView.setLikeDrawable(ElementScatter.getInstance(MainAbilitySlice.this).
6161
instaLikeView.setLikeColor(colorMatrix); // Set Like Color
6262
```
6363

64-
#### Future Work:
64+
## Future Work
6565
Since there is no alternate api for setColorFilter in HMOS platform, custom attribute - "app:likeColor" is currently not supported. As a result, user needs to call the setter function instaLikeView.setLikeColor(colorMatrix) and pass a colorMatrix as an argument which will internally call setColorMatrix(colorMatrix) to change the color of the drawable. Once HMOS platform supports setColorFilter, then this custom attribute can be included.
6666

6767

68-
### License
68+
## License
6969
```
7070
Copyright 2017 Kshitij Jain
7171

0 commit comments

Comments
 (0)