tonguetech / Android-StickerView

Apache License 2.0
123 stars 41 forks source link

How to impliment this library? #16

Open sammi06 opened 3 years ago

sammi06 commented 3 years ago

I am unable to find its dependency

Jivanlal786 commented 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);

reynoldyehezkiel commented 3 years ago

It's not installed to library. Maybe because you missed type the version. Do you know what version is it?