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. Image for the cookie policy date
close icon

Error inflating class com.syncfusion.numericupdown.SfNumericUpDown

Hello,

I have the following error when I put SfNumericUpDown into XML (it works in code behind)

Unhandled Exception:
Android.Views.InflateException: Binary XML file line #1: Binary XML file line #1: Error inflating class com.syncfusion.numericupdown.SfNumericUpDown


The code is :
<LinearLayout
            android:layout_width="match_parent"
            android:layout_height="fill_parent"
            android:orientation="vertical">
            <TextView
                android:id="@+id/PageAddParticipant_CoefficientHeader"
                android:text="@string/PageAddParticipant_CoefficientHeader"
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_marginRight="5dp"
                android:layout_marginLeft="5dp"
                style="@style/TextViewStyleDefault" />
         <com.syncfusion.numericupdown.SfNumericUpDown
                android:minWidth="25px"
                android:minHeight="25px"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/SfNumericUpDozn" />
            <TextView
                android:id="@+id/PageAddParticipant_PhotoHeader"
                android:text="@string/PageAddParticipant_PictureText"
                android:layout_height="wrap_content"
                android:layout_width="wrap_content"
                android:layout_marginRight="5dp"
                android:layout_marginLeft="5dp"
                style="@style/TextViewStyleDefault" />
        </LinearLayout>

Thanks in advance for your help

PS: I use the volume 3 2016 of Xamarin

3 Replies

HM Hemalatha Marikumar Syncfusion Team October 4, 2016 06:32 AM UTC

Hi Geoffrey Tinc,

Thanks for contacting Syncfusion Support.

We were able to reproduce the reported issue “Inflating exception while using NumericUpDown in xml file” at our end. And we have logged a defect report regarding the same. A support incident to track the status of this defect has been created under your account.

Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/

Regards,
Hemalatha M.R.


DM Derek Mitchell August 15, 2019 01:39 PM UTC

Could you send me the solution too? I am experiencing the same issue?

I am using Xamarin.Android (not Forms)

Many thanks


LR Lakshmi Radha Krishnan Syncfusion Team August 19, 2019 05:02 PM UTC

Hi Derek,

 

We have checked the SfNumericUpDown control in the axml file using the version 17.2.0.34 version. We are afraid that we are not able to reproduce the reported issue in the latest version. Please refer the tested sample for your reference.

 

Please let us know if you are facing any problem.

 

Regards,

Lakshmi R.


Attachment: NumericUpDown_axml_8abe837b.zip

Loader.
Live Chat Icon For mobile
Up arrow icon