Hi Areeb,
Thanks for your interest in Syncfusion products.
We have analyzed the provided information and we suspect that your requirement is to set the Size of CircularGauge. This can be achieved by the following two ways and its code snippets.
1. Setting the RadiusFactor to CircularScale of CircularGauge.
Code snippet:
circularScale.setRadiusFactor(0.5); // value ranges from 0.0 to 1.0
|
2. Setting the size for its parent layout.
Code snippet:
LinearLayout mLinearLayout = new LinearLayout(this);
LinearLayout.LayoutParams mBarParams=new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT, LinearLayout.LayoutParams.WRAP_CONTENT);
mBarParams.setMargins(30, 30, 30, 30);
mBarParams.height=500;
mBarParams.width=300;
mLinearLayout.setLayoutParams(mBarParams);
|
We have prepared a simple sample based on this. Please find the sample below.
Sample Link: Gauge_Sizing_AndroidStudio
If the provided Sample does not meet your requirement, could you please modify the provided sample along with its reproducing procedure? It will be helpful for us to analyze on your requirement and provide you a possible solution.
Please let us know, if you have any queries.
Regards,
Nijamudeen M.