[Mono-bugs] [Bug 644784] Custom components must use Java names in resource layout files

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Oct 11 17:58:22 EDT 2010


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

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


Jonathan Pobst <jpobst at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Blocker|Yes                         |---
                 CC|                            |jpobst at novell.com
         AssignedTo|mono-bugs at lists.ximian.com  |jpryor at novell.com
            Summary|If you create a custom      |Custom components must use
                   |component, you can't use it |Java names in resource
                   |from xml                    |layout files
           Severity|Critical                    |Normal

--- Comment #1 from Jonathan Pobst <jpobst at novell.com> 2010-10-11 21:58:22 UTC ---
The issue is that Android xml resource files expect Java names instead of .Net
names, so:

namespace Test_CustomComponent
{
    public class CustomComponent {}
}

should be:

<test_CustomComponent.CustomComponent android:layout_width="fill_parent"
android:layout_height="wrap_content"/>

instead of:

<Test_CustomComponent.CustomComponent android:layout_width="fill_parent"
android:layout_height="wrap_content"/>


jonp: Can you think of any way to make this more intuitive?  People are going
to hit this one a lot.

-- 
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