Skip to content

Latest commit

 

History

History
31 lines (28 loc) · 988 Bytes

README.md

File metadata and controls

31 lines (28 loc) · 988 Bytes

Squaremoticon Happy Logo Squaremoticon Sad Logo

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

    <com.fernandochristyanto.squaremoticon.CheerfulSquareEmoticon
          android:id="@+id/smiley"
          android:layout_width="120dp"
          android:layout_height="120dp"/>
    

    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)
      Happy to Sad
    • smiley.animateHappy(durationMillis: Long)
      Sad to Happy