Open sammi06 opened 3 years ago
Step 1. Add the JitPack repository to your build file
allprojects { repositories { ... maven { url 'https://jitpack.io' } } }
Step 2. Add the dependency
dependencies {
implementation 'com.github.kencheung4:android-StickerView:'
}
Usage is simple, follow given below steps:-
FrameLayout canvas = findViewById(R.id.vg_canvas);
//……
// add a stickerImage to canvas StickerImageView iv_sticker = new StickerImageView(getContext()); iv_sticker.setImageDrawable(((ImageView)view.findViewById(R.id.iv_sticker)).getDrawable()); canvas.adView(iv_sticker);
// add a stickerText to canvas StickerTextView tv_sticker = new StickerTextView(getContext()); tv_sticker.setText(“call me baby”); canvas.addView(tv_sticker);
It's not installed to library. Maybe because you missed type the version. Do you know what version is it?
I am unable to find its dependency