android-DecoView-charting icon indicating copy to clipboard operation
android-DecoView-charting copied to clipboard

Keeping the view squared

Open aromano272 opened this issue 8 years ago • 1 comments

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

aromano272 avatar Jul 26 '16 03:07 aromano272

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.

nocturne9op2 avatar Feb 21 '17 03:02 nocturne9op2