Skip to content

gappein/Gappein-Sticker-SDK

Repository files navigation

Gappein Sticker SDK

Banner

Download

Gappein Sticker SDK is just android SDK where you can convert your text as Sticker.

Feature it supports

  • You can use it with your XML View
  • And yes, it can be used in your view file.

To install it in your project,

implementation 'com.gappein:sticker:1.0.0'

To use it in View (Activity/Fragment)

Add it in the onCreate() of your view file like,

 val stickerView = StickerView(this)

And to generate the Sticker for the entered text view,

 stickerView.generateSticker("TEXT TO GENERATE STICKER")

This will return the Bitmap and just perform your actions :)

To use it in XML

Add in your XML like,

 <com.gappein.ui.StickerView
   android:id="@+id/stickerView"
   android:layout_width="wrap_content"
   android:layout_height="0dp"
   app:layout_constraintLeft_toLeftOf="parent"
   app:layout_constraintRight_toRightOf="parent"
   app:layout_constraintTop_toTopOf="parent" />

and similar to above, to generate sticker use,

 stickerView.generateSticker("TEXT TO GENERATE STICKER")

This will also return the Bitmap you are done :)

Recommendation

  • Prefer the length of characters upto 20 for better display of Stickers.

About

This is a SDK which converts text into sticker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages