android-DecoView-charting
android-DecoView-charting copied to clipboard
Keeping the view squared
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
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.