BottomToolbar.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);
            RequestWindowFeature(WindowFeatures.NoTitle);
            SetContentView(Resource.Layout.Main);

            tab1Button=this.FindViewById<ImageButton>(Resource.Id.tab1_icon);
            tab2Button=this.FindViewById<ImageButton>(Resource.Id.tab2_icon);
            tab3Button=this.FindViewById<ImageButton>(Resource.Id.tab3_icon);
            tab4Button=this.FindViewById<ImageButton>(Resource.Id.tab4_icon);

            headingText = this.FindViewById<TextView>(Resource.Id.heading_text);

            tab1Text=this.FindViewById<TextView>(Resource.Id.tab1_text);
            tab2Text=this.FindViewById<TextView>(Resource.Id.tab2_text);
            tab3Text=this.FindViewById<TextView>(Resource.Id.tab3_text);
            tab4Text=this.FindViewById<TextView>(Resource.Id.tab4_text);

            selectedColor = Resources.GetColor(Resource.Color.white);
            deselectedColor = Resources.GetColor(Resource.Color.theme_blue);

            tab1Button.Click += delegate {
                showTab1();
            };

            tab2Button.Click += delegate {
                showTab2();
            };

            tab3Button.Click += delegate {
                showTab3();
            };

            tab4Button.Click += delegate {
                showTab4();
            };

            showTab1();
        }