bmarrdev / android-DecoView-charting

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

Added fitToSize #25

Closed aromano272 closed 8 years ago

aromano272 commented 8 years ago

Implemented new attribute dv_fitToSize, if set to true it will make the view square (not just the canvas), so its size is going to be the smallest of the width or height, allowing for other widgets to be right next to it in LinearLayouts, RelativeLayouts, etc.. Because the View will no longer occupy the full screen, dv_arc_gravity_horizontal and dv_arc_gravity_vertical will no longer work, so the user can use the regular ways to align a view, like changing the gravity setting of its parent layout.

aromano272 commented 8 years ago

Found that it actually behaves a bit buggy some times, closing.