[Mono-bugs] [Bug 646935] Resource.Designer.cs Enhancements

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 21 12:45:21 EDT 2010



--- Comment #4 from Jonathan Pryor <jpryor at novell.com> 2010-10-21 16:45:20 UTC ---
Finally, as for request (4) that we provide a "stub activity" based on the
layout information, while this looks extremely cool, this cannot be provided at
this time, for the same reason that doc comments on string resources are
currently infeasible: 'aapt dump resources' doesn't provide the information
requried, meaning we'd have to separately parse the layout files in order to
determine what IDs are being referred to so that e.g.
Resource.Layouts.MainBase.MyButton could be generated.

At present, the best we could generate is:

    class Resources {
        class Layouts {
            class MainBase : Activity{
                public MainBase(IntPtr h) : base(h) {}
                protected override void OnCreate(Bundle bundle)

In short, this isn't actually saving you a whole lot, and any subclasses would
still need to provide the (IntPtr) constructor.  I can see it being useful if
we could find the IDs which were referenced in the layout (as you did in your
example), but at this time the required information isn't easily accessible.

At best, this is a post-1.0 feature.

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

More information about the mono-bugs mailing list