niravkalola / Android-StickerView

Android StickerView Example
http://blog.nkdroidsolutions.com/how-to-rotate-scale-and-move-stickers-or-imageview/
34 stars 25 forks source link

How to scale text view width and height independently? #2

Open martinbaciga opened 8 years ago

martinbaciga commented 8 years ago

Hi @niravkalola, i was trying to scale the text view width and heigh independently with the same scale button that you're using.

I've tried to change this

StickerView.this.getLayoutParams().width += offset; StickerView.this.getLayoutParams().height += offset;

by this

StickerView.this.getLayoutParams().width += offsetX; StickerView.this.getLayoutParams().height += offsetY;

in both cases (scale up and down).

But this works weird, something more needs to be done here. Do you know how i can manage to do that?

Thanks!

ashishkevadiya commented 7 years ago

not working