Adding additional .cs actions and an axml layout using Visual Studio 2015.
I am very new to Xamarin and Android, but have worked as a developer on VB for several years, and now in C #. I have a simple application on Android 4.2, which is becoming more difficult as you move forward. The simple thing is that I want to add an additional GpsAction.cs and the corresponding Gps.axml layout to the project. It seems impossible to find the right combination syntax to achieve this. I have mainActivity with main.axml. In VS 2015 it’s very easy to add new ones, but I keep getting “resource.id does not contain a definition”. I would really appreciate your help with this.
namespace AddCam { [Activity(Label = "GpsActivity")] public class GpsActivity : Activity { protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.GpsLayout); string c = FindViewById<TextView>(**Resource.Id.textView1**).Text;
android c # xamarin xamarin.android
RobertM - Orlando
source share