Skip to main content
You're viewing documentation for a previous version of this software.Switch to the latest stable version


The VideoEditor SDK for Android ships with a preset sticker library containing emoticons and shapes. Learn how to add custom sticker packages to the library

Stickers tool

The VideoEditor SDK comes with a predefined set of stickers, which you can examine in our demo app. You can download the app from the Play Store or clone from the demo repository.

The backend settings of each sticker is implemented in the ImageStickerLayerSettings class and displayed using the StickerToolPanel. If you want to customize the appearance of this tool, take a look at the customization section.

Managing sticker assets#

Please make sure you put the PNG files into the res/raw or the res/drawable-nodpi folder, otherwise the sticker is scaled by Android what ends up in memory problems and slow performance.

The list of ImageStickerAsset objects represents the stickers that are available for rendering.

A sticker configuration could then look like this:

// Obtain the asset config from you settingsList
AssetConfig assetConfig = settingsList.getConfig();
// Add Assets
new ImageStickerAsset(
new ImageStickerAsset(
new ImageStickerAsset(
new ImageStickerAsset(
new ImageStickerAsset(
new ImageStickerAsset(
new ImageStickerAsset(
ImageSource.create(Uri.fromFile(new File("path_to_sticker_folder", "sticker_name.png")))

Adding sticker items to the UI#

In order to change the available stickers or add new stickers, start with a default SettingsList as described in the configuration section. Then use the setStickerList(StickerCategoryItem...) method to update the configuration. The stickers are partitioned into categories, therefore the AssetConfig expects a list of StickerCategoryItem objects. Each of these objects represents a single sticker category and takes three parameters:

  1. The resource identifier of the sticker name. Will not be displayed in the default layout but, is used for accessibility
  2. A drawable resource or ImageSource of the icon
  3. A list of ImageStickerItem objects
UiConfigSticker uiConfigSticker = settingsList.getSettingsModel(UiConfigSticker.class);
new StickerCategoryItem(
new ImageStickerItem("imgly_sticker_emoticons_grin",, ImageSource.create(,
new ImageStickerItem("imgly_sticker_emoticons_laugh",, ImageSource.create(,
new ImageStickerItem("imgly_sticker_emoticons_smile",, ImageSource.create(,
new ImageStickerItem("imgly_sticker_emoticons_wink",, ImageSource.create(,
new ImageStickerItem("imgly_sticker_emoticons_tongue_out_wink",, ImageSource.create(,
new ImageStickerItem("imgly_sticker_emoticons_angel",, ImageSource.create(
new StickerCategoryItem(
new ImageStickerItem("imgly_sticker_shapes_badge_01",, ImageSource.create(,
new ImageStickerItem("imgly_sticker_shapes_badge_04",, ImageSource.create(,
new ImageStickerItem("imgly_sticker_shapes_badge_12",, ImageSource.create(,
new ImageStickerItem("imgly_sticker_shapes_badge_06",, ImageSource.create(,
new ImageStickerItem("imgly_sticker_shapes_badge_13",, ImageSource.create(

Adding Smart Stickers#

There are currently 6 predefined smart stickers available with the SmartStickerPack.

  1. Weekday
  2. Date
  3. Time
  4. Time Clock
  5. Weather Cloud (Requires a WeatherProvider)
  6. Weather Thermostat (Requires a WeatherProvider)

The smart stickers are part of the StickerPackEmoticons sticker category if the 'backend:sticker-smart' module is included. To add all of the smart stickers you need a WeatherProvider and a SettingsList reference.

public class MyConfig {
public void addSmartSticker(SettingsList settingsList) {
new PersonalStickerAddItem(),
StickerPackEmoticons.getStickerCategory(), // Contains Smart Stickers
SmartStickerPack.getStickerCategory(settingsList, null) // Adds Smart Stickers separately
// ...

Adding mandatory sticker#

To set adding stickers on images as a mandatory step, the application has to check if a sticker has been added to an edited image. For this you can check the layer list. To achieve this effect, add a custom MyUiStateMenu and override UiStateMenu like this:

public class MyUiStateMenu extends UiStateMenu {
public void notifySaveClicked() {
List<LayerListSettings.LayerSettings> layerList = getStateModel(LayerListSettings.class).getLayerSettingsList();
boolean hasSticker = false;
for (int i = 0; i < layerList.size(); i++) {
if (layerList.get instanceof ImageStickerLayerSettings) {
hasSticker = true;
if (hasSticker) {
} else {
Toast.makeText(PESDK.getAppContext(), "You have to add a sticker!", Toast.LENGTH_LONG).show();

Now you have to replace the old state class with the new one. You can do this in the MainActivity like this:

class MainActivity {
static {
StateHandler.replaceStateClass(UiStateMenu.class, MyUiStateMenu.class);