LinearGauge annotation exception

hi all,
i have a lineargauge in sfListView.
when i add annotation i have this exception:
Java.Lang.ClassCastException: 'android.widget.LinearLayout$LayoutParams cannot be cast to android.widget.FrameLayout$LayoutParams'

 
                                                       
                                                   

thanks


15 Replies

SS Sridevi Sivakumar Syncfusion Team June 14, 2021 09:26 AM UTC

Hi Alberto,

Greetings from Syncfusion.

We have analysed your query and prepared a sample with SfLinearGauge with annotation and gauge added in SfListView. And the sample is working fine at our end, please have a sample from the below link.

Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/GaugeSample373125402

Tested device detail: Mi A3(OS version: 10)

Can you please provide the detailed information on the reported query?

·       Please provide the parent view structure where the SfLinearGauge added.
·       Can you please share the issue reproducing video?
·       If the issue is not reproduced in the above sample, please revert us by modifying the sample based on your application along with the replication procedure.
·       Can you provide the overall page structure used in your project?
·       Can you share the Xamarin. Forms, Syncfusion versions, and also device configuration details?

The above information will be more helpful to reproduce the issue our side and provide you solution as soon as possible.


Regards,
Sridevi S.
 
 



LU Luca June 14, 2021 10:11 AM UTC

hi,
i put my xaml here thanks:

<gauge:SfLinearGauge IsVisible="{Binding IsVisible" Grid.Row="3" Grid.Column="0"  HeightRequest="15"    Orientation="OrientationHorizontal">

                                            <gauge:SfLinearGauge.Annotations>
                                                <gauge:LinearGaugeAnnotation OffsetX ="0.5" OffsetY ="0.5">
                                                    <gauge:LinearGaugeAnnotation.View>
                                                        <Label Text="{Binding Text}" FontAttributes = "Bold" TextColor="White" FontSize ="8"/>
                                                    </gauge:LinearGaugeAnnotation.View>
                                                </gauge:LinearGaugeAnnotation>
                                            </gauge:SfLinearGauge.Annotations>


SS Sridevi Sivakumar Syncfusion Team June 15, 2021 12:17 PM UTC

Hi Alberto,

We have prepared a sample to replicate the issue based on the provided code snippet, but we are afraid, that we are not able to reproduce the issue at our end. The sample we tried can be downloaded from the below location.

Sample link: 
 
 
 

Since we are not aware of your exact application scenario, we were not able to reproduce this at our end, can you please revert us by modifying the sample based on your application along with the replication procedure. This will be helpful for us to provide you a better solution at the earliest.

Regards,
Sridevi S.  
 



LU Luca June 22, 2021 07:31 PM UTC

thanks for your answer.. maybe the issue is that i have a list view, with a grid and then a lineargauge in the table...



SS Sridevi Sivakumar Syncfusion Team June 23, 2021 11:12 AM UTC

Hi Alberto,

We have tested the sample with Syncfusion SfListView and framework Listview control, but both are working fine with linear gauge .


We already shared SfListView with SfLinearGauge in our previous update, also please find the framework ListView with SfLinearGauge sample in below location.

Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/GaugeSample-1591090371

If you still face any problem, can you revert us by modifying the attached sample based on your application scenario, this will help us to provide you a better solution at the earliest. 

Regards,
Sridevi S.
 
 



LU Luca July 13, 2021 10:39 PM UTC

hi,

i checked your example but i'm using your SfListView not the standard one. maybe is this.

tried different changes but i always get the error.

tell me if you need more detail

thanks



ET Eswaran Thirugnanasambandam Syncfusion Team July 14, 2021 02:47 PM UTC

Hi Alberto, 
 
Thanks for your update. 
 
We able to reproduce the reported issue from our side and currently we are checking the reported problem. We will update further details on July 15,2021. 
 
Regards, 
Eswaran 



SS Sridevi Sivakumar Syncfusion Team July 15, 2021 11:41 AM UTC

Hi Alberto,

We checked the reported issue [Android] Control crashed while adding linear gauge with annotation in listview and scrolling and we have logged a bug report for this issue. You can keep track of the bug from the feedback portal below.

Link: https://www.syncfusion.com/feedback/27067

The provided feedback link is private, and you need to login to view this feedback.

We will include the fix in the next weekly NuGet which is expected to be released on July 20, 2021.

If you have any more specification/precise replication procedure or a scenario to be tested, you can add it as a comment in the portal.

Regards, 
Sridevi S.   
 
 



LU Luca July 15, 2021 01:02 PM UTC

thanks, please check also in IOS thanks



SS Sridevi Sivakumar Syncfusion Team July 16, 2021 12:42 PM UTC

Hi Alberto,

We checked the 
same scenario in iOS and found that there is an issue related to annotation alignment. And we will fix it and include in our July-27 weekly nuget. If you found issue in different scenario please share the details with replication steps.

Regards,
Sridevi S.
 
 



SS Sridevi Sivakumar Syncfusion Team July 20, 2021 02:13 PM UTC

Hi Alberto,

We have fixed the reported issue[Android] Control crashed while adding linear gauge with annotation in listview and scrolling. The assemblies for the fix can be downloaded from the below link.

Please find the patch assemblies alone from below location:
https://syncfusion.com/Installs/support/patch/19.2.0.44/916885/F166321/SyncfusionPatch_19.2.0.44_916885_7202021085402788_F166321.zip

Assembly Version: 19.2.0.44

Disclaimer:
Please note that we have created this patch for version 19.2.0.44 specifically to resolve the following issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received
.

To Clear the cache:
Follow the below link to clear cache,
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache

The fix will be included in our weekly NuGet release which is expected to be rolled out on July 27, 2021.


We appreciate your patience until then.

Regards,
Sridevi S.  
 



SS Sridevi Sivakumar Syncfusion Team July 27, 2021 03:42 PM UTC

Hi Alberto,

Android issue: 

We have fixed the “[Android] Control crashed while adding linear gauge with annotation in listview and scrolling” issue and the fix is included in our weekly NuGet of July 27, 2021.

NuGet Version: 19.2.0.49

 
iOS issue:  
Sorry for the inconvenience, we have fixed the “Annotation alignmentissue. The assemblies for the fix can be downloaded from the below link.

https://syncfusion.com/Installs/support/patch/19.2.0.44/916885/F166321/SyncfusionPatch_19.2.0.44_916885_7272021093502266_F166321.zip

Assembly Version: 19.2.0.44

The fix will be included in our weekly NuGet release which is expected to be rolled out on August 3, 2021.


We appreciate your patience until then.

Regards,
Sridevi S. 
 
 



LU Luca July 28, 2021 09:27 AM UTC

thanks i'm going to wait the new version.

thanks



SS Sridevi Sivakumar Syncfusion Team July 29, 2021 07:39 AM UTC

Hi Alberto,

Thanks for your  update,

As we mentioned, our weekly NuGet will be released on August 3, 2021, and we will inform you once the weekly NuGet is rolled out.

Let us know if you need any further assistance.


Regards,
Sridevi S. 



SS Sridevi Sivakumar Syncfusion Team August 3, 2021 02:01 PM UTC

Hi Alberto,

We have fixed the reported issue and the fix is included in our weekly NuGet of August 3, 2021.

NuGet Version: 19.2.0.51

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Regards,
Sridevi S.
 
 
 


Loader.
Up arrow icon