uptechteam / MotionViews-Android

Code Guide: How to create Snapchat-like image stickers and text stickers.
https://blog.uptech.team/how-to-create-snapchat-like-stickers-for-android-50512957c351
MIT License
479 stars 112 forks source link

How to make boundary of TextEntity equal to exact textsize? #7

Closed kiaanpillay closed 6 years ago

kiaanpillay commented 7 years ago

There is always a bit of a margin on the left and right of Text Entities, not sure about Image enities. Is there a way to remove this so it is basically "Wrap_content"?

kiaanpillay commented 7 years ago

Great project!

kiaanpillay commented 7 years ago

Any update?

AndriyBas commented 7 years ago

Hello @kiaanpillay . The text entity is designed to be of the same width (and flexible height). In class TextEntity method createBitmap the width of the TextEntity is defined as the canvasWidth. You can change it to the value you want (like the width of the text).

AndriyBas commented 7 years ago

is that what you were asking for ?