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

Keeping the view squared #24

Open
aromano272 opened this issue Jul 26, 2016 · 1 comment
Open

Keeping the view squared #24

aromano272 opened this issue Jul 26, 2016 · 1 comment

Comments

@aromano272
Copy link

First of all not sure if this is the right place to place feature requests, anyway if would be nice if you could add some sort of functionality to stop the view from expanding the full height or width.
So when recalcLayout is called it would draw a square with the lowest of the width/height.
It would help with placing content below the DecoView without having to alignParentBottom.
Thanks

@ghost
Copy link

ghost commented Feb 21, 2017

You can manually resize the DecoView by doing:
RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(size, size); decoView.setLayoutParams(layoutParams);

In my case, I was using a RelativeLayout so I had to use RelativeLayout.LayoutParams.

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

1 participant