Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am trying to draw a sticker at specific position on the PhotoView or Image. How do I do that? #28

Open
KanikaKachhawaha opened this issue Jun 25, 2018 · 2 comments

Comments

@KanikaKachhawaha
Copy link

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.

@Ashusolanki
Copy link

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

@hammadpirzada1
Copy link

@Ashusolanki where do we have to put this code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants