[Mono-bugs] [Bug 644784] New: If you create a custom component, you can't use it from xml

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 7 17:02:44 EDT 2010


https://bugzilla.novell.com/show_bug.cgi?id=644784

https://bugzilla.novell.com/show_bug.cgi?id=644784#c0


           Summary: If you create a custom component, you can't use it
                    from xml
    Classification: Mono
           Product: MonoDroid
           Version: unspecified
          Platform: 64bit
        OS/Version: Windows 7
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: bryancostanich at hotmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Customer
           Blocker: Yes


Created an attachment (id=393665)
 --> (http://bugzilla.novell.com/attachment.cgi?id=393665)
repro project

Description of Problem:
If you create a custom component and try to use it from xml, say:
 <Test_CustomComponent.CustomComponent android:layout_width="fill_parent"
android:layout_height="wrap_content"/>

the android OS will produce an error saying it can't inflate it:
E/AndroidRuntime(  387): java.lang.RuntimeException: Unable to start activity
ComponentInfo{Test_CustomComponent.Test_CustomComponent/test_CustomCompo
nent.Activity1}: android.view.InflateException: Binary XML file line #3: Error
inflating class Test_CustomComponent.CustomComponent

Steps to reproduce the problem:
1. Create new project
2. Add a custom component that inflates its layout from an xml file
3. add a layout for it
4. drop that component into the main.xml layout
5. run.


Actual Results:
error

Expected Results:
the component should display

How often does this happen? 
everytime

Additional Information:
repro project attached

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list