我在Xamarin中创建了一个新项目,但是当我添加一个新的布局时,它没有出现在Resource.Id中,已经重新编译了应用程序,重新启动了Xamarin(甚至是rsrsr pc)。在类Layout中的Resource.designer.cs文件中,不会出现新的组件:
public partial class Layout
{
// aapt resource value: 0x7f030000
public const int actionbar = 2130903040;
// aapt resource value: 0x7f030001
public const int actionbar_item = 2130903041;
// aapt resource value: 0x7f030002
public const int blankspinner = 2130903042;
// aapt resource value: 0x7f030003
public const int Main = 2130903043;
// aapt resource value: 0x7f030004
public const int overflowactionbar_item = 2130903044;
// aapt resource value: 0x7f030005
public const int spinneritem = 2130903045;
// aapt resource value: 0x7f030006
public const int tabs = 2130903046;
static Layout()
{
global::Android.Runtime.ResourceIdManager.UpdateIdValues();
}
private Layout()
{
}
}