xamarin - How to create const and variables in Resource.designer.cs? -
why need write code:
public const int mybutton = 2131034112;
what other way create button (and other variables)?
just confirm vote made daniel, if want add resources can access via resource.id.{controlname} or resource.layout.{layoutname or view name}, need add layout files project. layout files contain controls appears in app , you'll able use layoutinflater create views them.
i this, in xamarin studio.. you'll need close resource.designer.cs file.. because you'll make changes.. , won't reflect in file.. immediately. when i'm doing monodroid work.. frustrated how have close , re-open file controls or layouts working in intellisense.
Comments
Post a Comment