[Mono-bugs] [Bug 644317] New: monodroid should ignore @values when generating //activity/@android:label values.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Oct 6 15:37:31 EDT 2010


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

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


           Summary: monodroid should ignore @values when generating
                    //activity/@android:label values.
    Classification: Mono
           Product: MonoDroid
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Tools
        AssignedTo: mkestner at novell.com
        ReportedBy: jpryor at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Consider the following source, which uses a resource value for HelloActivity's
Label:

    [Activity(Label="@string/app_name", MainLauncher=true)]
    public class HelloActivity : Activity {
    }

    [Activity]
    public class AnotherActivity : Activity {
    }

Build, and get a compilation error, because the intermediate
AndroidManifest.xml contains:


    <activity android:name="tabLayout.SongsActivity"
        android:label="@string/app_name: AnotherActivity" />
    <activity android:label="@string/app_name"
        android:name="tabLayout.HelloActivity" />

aapt doesn't like the android:label value of "@string/app_name:
AnotherActivity".

monodroid should probably look for a Label starting with @ and "ignore that
when creating labels for the other activities...or just not generate
//activity/@android:label by default.

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