Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Last active December 15, 2015 00:49
Show Gist options
  • Save wullemsb/5175895 to your computer and use it in GitHub Desktop.
Save wullemsb/5175895 to your computer and use it in GitHub Desktop.
Sample xml for string resources in Mono for Android Generated designer file based on the XML
public partial class String
{
// aapt resource value: 0x7f070001
public const int ApplicationName = 2131165185;
// aapt resource value: 0x7f07000f
public const int DataLoadingError = 2131165199;
// aapt resource value: 0x7f07000e
public const int ImageLoadingError = 2131165198;
// aapt resource value: 0x7f07000d
public const int UnexpectedError = 2131165197;
private String()
{
}
}
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="ApplicationName">My Android App</string>
<string name="UnexpectedError">Unexpected Error</string>
<string name="ImageLoadingError">Failed to load image</string>
<string name="DataLoadingError">Failed to load data</string>
</resources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment