MotionViews-Android icon indicating copy to clipboard operation
MotionViews-Android copied to clipboard

How to set sticker on predefine location using dp or px?

Open patelmanthan777 opened this issue 7 years ago • 2 comments

You already user PointF but i want to use dp or px so, Is there any method in library to set location of text sticker place at predife location which is in dp or px?

patelmanthan777 avatar Oct 11 '18 06:10 patelmanthan777

Di you find any solution for this issue?

mianaliasjad avatar Mar 27 '20 14:03 mianaliasjad

Call entity.moveCenterTo like so:

val entity = ImageEntity(layer, pica, motionView.width, motionView.height)
motionView.addEntityAndPosition(entity)
entity.moveCenterTo(PointF(motionView.width * 0.2f, motionView.height * 0.2f))

daniel-stoneuk avatar Aug 13 '20 19:08 daniel-stoneuk