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

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

Open
martinbaciga opened this issue Sep 28, 2016 · 1 comment
Open

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

martinbaciga opened this issue Sep 28, 2016 · 1 comment

Comments

@martinbaciga
Copy link

martinbaciga commented Sep 28, 2016

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
Copy link

not working

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

2 participants