Hey guys!

I'm new to the mailing list, so I look forward to meeting you all!

I'm having an issue with Resource Aliases. In the default MasterDetailFlow
application in Java, a file is created in the "resources/values-sw600dp"
folder called "refs.xml". Refs.xml contains the following:

<resources>
    <item type="layout"
name="activity_athlete_list">@layout/activity_athlete_twopane</item>
</resources>

"Athlete" is a generic name based on a specified input in the project
creation UI. activity_athlete_list and activity_athlete_twopane are both
layout files in Layout. twopane is intended for larger tablets and uses
fragments. They're both associated with the Activity AthleteListActivity.

Basically what happens is that the R.layout.activity_athlete_list is set to
point to R.layout.activity_athlete_twopane for screen sizes above sw600dp.

I'm trying to replicate this in MonoDroid to no avail. Here is the contents
of the refs.xml file in my MonoDevelop project:

<resources>
<item type="layout"
name="ActivityAthleteList">@layout/ActivityAthleteTwopane</item>
</resources>

The layout resource files are appropriately renamed from
activity_athlete_list.xml to ActivityAthleteList.axml and from
activity_athlete_twopane.xml to ActivityAthleteTwopane.axml.

Unfortunately, I keep getting an error: Error: No resource found that
matches the given name (at 'ActivityAthleteList' with value
'@layout/ActivityAthleteTwopane').

Does anybody know how to resolve this issue, or if this is even possible in
MonoDevelop?

Additionally, I would just copy "ActivityAthleteTwopane.axml" to
Layout-Sw600Dp and rename it to "ActivityAthleteList.axml", but there is a
bug in both MonoDevelop and Visual Studio (2010 and 2012) where if I try to
open Resource/Layout-Sw600dp/ActivityAthleteList.axml, it displays the
contents of Resource/Layout/ActivityAthleteList.axml. If there is a
solution to fix this bug, I would love to hear it. Otherwise, take not
Xamarin.

Hope I can get some help!

Thanks,
Andrew Gaspar
_______________________________________________
Monodroid mailing list
[email protected]

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to