We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SFAccordion problem in Android App

Thread ID:

Created:

Updated:

Platform:

Replies:

151157 Feb 2,2020 12:27 AM UTC Feb 4,2020 05:53 AM UTC Xamarin.Forms 3
loading
Tags: SfAccordion
Kevin
Asked On February 2, 2020 12:27 AM UTC

The control works in my IOS app, but I get the following message when I run the same Xamarin Forms code on Android...

Java.Lang.NullPointerException
  Message=Attempt to read from field 'int android.view.ViewGroup$LayoutParams.width' on a null object reference


Lakshmi Natarajan [Syncfusion]
Replied On February 3, 2020 04:45 AM UTC

Hi Kevin,  
  
Thanks for using Syncfusion products.  
  
We have checked the reported query from our side. We suspect you are reporting the crash in below bug report,  
  
  
If yes, we would like to inform that above is the framework issue in latest Xamarin Version while loading Label directly inside AccordionItem’s Header/Content and you can follow below bug for further updates from Xamarin team. Meanwhile, we suggest that you can overcome the reported issue in sample by loading Label inside Grid.   
   
Actual Code   
Expected Code   
<Syncfusion:SfAccordion> 
    <Syncfusion:SfAccordion.Items> 
        <Syncfusion:AccordionItem> 
           <Syncfusion:AccordionItem.Header> 
               <Label Text=”Category”/> 
           </Syncfusion:AccordionItem.Header> 
 
           <Syncfusion:AccordionItem.Content> 
               <Label Text=”Hamburger”/> 
           </Syncfusion:AccordionItem.Content> 
        </Syncfusion:AccordionItem> 
     </Syncfusion:SfAccordion.Items> 
<Syncfusion:SfAccordion> 
<Syncfusion:SfAccordion> 
    <Syncfusion:SfAccordion.Items> 
        <Syncfusion:AccordionItem> 
           <Syncfusion:AccordionItem.Header> 
               <Grid>  
                   <Label Text=”Category”/> 
               </Grid> 
           </Syncfusion:AccordionItem.Header> 
 
           <Syncfusion:AccordionItem.Content> 
               <Grid>  
                  <Label Text=”Hamburger”/> 
               </Grid> 
           </Syncfusion:AccordionItem.Content> 
        </Syncfusion:AccordionItem> 
     </Syncfusion:SfAccordion.Items> 
<Syncfusion:SfAccordion> 
   
If no and you are facing any other crash other than above, kindly share more details or revert us back with more detail of exception details in order to analyze and provide better solution at our end.  
  
Regards,  
Lakshmi Natarajan 


Padmini Ramamurthy [Syncfusion]
Replied On February 4, 2020 05:22 AM UTC

From: Kevin Landgrave 
Sent: Monday, February 3, 2020 4:05 PM
To: Syncfusion Support <support@syncfusion.com>
Subject: RE: Syncfusion support community forum 151157, SFAccordion problem in Android App, has been updated. 
  
Wrapping everything in a Grid fixed this for me. 

Thanks! 



Lakshmi Natarajan [Syncfusion]
Replied On February 4, 2020 05:53 AM UTC

Hi Kevin, 
 
Thanks for the update. 
  
We are glad that reported issue have been resolved at your end. Please let us know if you need any further update. As always we are happy to help you out. 
 
Regards, 
Lakshmi Natarajan 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon