ActionBarCompat.MainActivity.OnCreate C# (CSharp) Method

OnCreate() protected method

protected OnCreate ( Bundle bundle ) : void
bundle Bundle
return void
		protected override void OnCreate (Bundle bundle)
		{
            
			base.OnCreate (bundle);


			// Set our view from the "main" layout resource
			SetContentView (Resource.Layout.Main);

            var next = new Intent(this, typeof(ShareActivity));
            FindViewById<Button>(Resource.Id.button_share).Click += (sender, args) => StartActivity(next);
            FindViewById<Button>(Resource.Id.button_search).Click += (sender, args) => StartActivity(new Intent(this, typeof(SearchActivity)));
            FindViewById<Button>(Resource.Id.button_dark).Click += (sender, args) => StartActivity(new Intent(this, typeof(ThemeDarkMainActivity)));
            FindViewById<Button>(Resource.Id.button_dark_ab).Click += (sender, args) => StartActivity(new Intent(this, typeof(ThemeDarkABMainActivity)));
            FindViewById<Button>(Resource.Id.button_dark_custom).Click += (sender, args) => StartActivity(new Intent(this, typeof(CustomizedActivity)));
            FindViewById<Button>(Resource.Id.button_nav_drawer).Click += (sender, args) => StartActivity(new Intent(this, typeof(DrawerLayoutActivity)));
        }