StickerView
StickerView copied to clipboard
I am trying to draw a sticker at specific position on the PhotoView or Image. How do I do that?
For instance, I have used a Face++ sdk to detect face landmarks in an image. Now I want to add an eyebrow sticker on the obtained eyebrow landmarks over the PhotoView.
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT); params.addRule(RelativeLayout.CENTER_IN_PARENT, RelativeLayout.TRUE); parentView.addView(StickerView, params);
Try This
@Ashusolanki where do we have to put this code?