https://github.com/chfern/squaremoticon
😃Square emoticon with transitions for Android
https://github.com/chfern/squaremoticon
android customview kotlin library
Last synced: 2 months ago
JSON representation
😃Square emoticon with transitions for Android
- Host: GitHub
- URL: https://github.com/chfern/squaremoticon
- Owner: chfern
- Created: 2019-09-15T17:42:43.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-21T16:08:16.000Z (over 6 years ago)
- Last Synced: 2025-09-07T08:21:06.507Z (10 months ago)
- Topics: android, customview, kotlin, library
- Language: Kotlin
- Homepage:
- Size: 241 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README


# squaremoticon
Android emoticon with facial expression transitions
## How to Use
This library is available through jcenter and can be included as follow:
```
implementation "com.fernandochristyanto:squaremoticon:$version"
```
Current version: 1.0.0
## Emoticon
* CheerfulSquareEmoticon
```
```
You can set the emoticon initial state by code
``` smiley.setEmoticonState(emoticonState: Int)```
States:
* CheerfulSquareEmoticon.EMOT_STATE_HAPPY
* CheerfulSquareEmoticon.EMOT_STATE_SAD
Transitions
* ```smiley.animateSad(durationMillis: Long)```

* ```smiley.animateHappy(durationMillis: Long)```
