Wanted to know how centralize digital gauge , because when as wrap_content (required space) it takes up space and all the gauge is in the upper left corner , how can I fix it without the need for various calculations to center ?
PAPaul Anderson S Syncfusion Team May 22, 2015 11:59 AM UTC
Thank you for using Syncfusion products.
We would like to inform that the gauge can be added in any layout and it can be positioned using ‘setGravity’ method available in layouts.By default the gauge will have the size of the available space. So it is needed to set the control size based on the CharacterHeight of the control. For further customizing the positions setX and setY methods can be used for modifying its X and Y positions. Please refer the below code snippet for positioning through layout.
[Code Snippet] SfDigitalGauge digitalGauge1 = new SfDigitalGauge(context); digitalGauge1.setCharacterHeight(25);