https://bugzilla.novell.com/show_bug.cgi?id=646935
https://bugzilla.novell.com/show_bug.cgi?id=646935#c4 --- Comment #4 from Jonathan Pryor <[email protected]> 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) { base.OnCreate(bundle); SetContentView(Resources.Layouts.Main); } } } } 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
