Multiple SfCircularGauge on one LinearLayout programmatically?

Hello,

I am trying to display 2 SfCircularGauge on  one LinearLayout programmatically. . Unfortunatly I am able to display only one of them even thought I add 2 circular gauge with:

            View v1 = CreateCircularGauge(25);
            View v2 = CreateCircularGauge(30);
            layout.AddView(v1);
            layout.AddView(v2);

I have attached my solution which is working only for the first gauge. The previous code come from my solution in the main activity.

Anyone able to display more than one gauge one LinearLayout?

Thank 
Sylvain 

Attachment: App17_8dbad8f1.zip

2 Replies

SM Sylvain Menard March 11, 2018 11:14 PM UTC

Just found out that I was missing some critical lines of code:

            View v1 = CreateCircularGauge(25);
            View v2 = CreateCircularGauge(30);
            ViewGroup.LayoutParams layoutparams = new ViewGroup.LayoutParams(700, 550);
            v1.LayoutParameters = layoutparams;
            v2.LayoutParameters = layoutparams;



SG Sri Gayathri Gopalakrishnan Syncfusion Team March 12, 2018 04:33 AM UTC

Hi Sylvain, 
Thanks for your response, we are glad that the issue has been resolved and please get back to us if you need any other assistance. 
Regards, 
Sri Gayathri. G 


Loader.
Up arrow icon