bmarrdev / android-DecoView-charting

DecoView: Android arc based animated charting library
Apache License 2.0
991 stars 194 forks source link

Keeping the view squared #24

Open aromano272 opened 8 years ago

aromano272 commented 8 years ago

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 commented 7 years ago

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.