Exemplo n.º 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.activity_main);
            alert       = new Android.App.AlertDialog.Builder(this);
            textMessage = FindViewById <TextView>(Resource.Id.message);
            BottomNavigationView navigation = FindViewById <BottomNavigationView>(Resource.Id.navigation);

            navigation.SetOnNavigationItemSelectedListener(this);

            userName = Intent.GetStringExtra("userName");
            userPass = Intent.GetStringExtra("userPassword");

            f1 = new HomeMenuFragment(this, userName);
            f2 = new MyLibraryMenuFragment(this, userName);
            f3 = new StoreMenuFragment(this, userName);
            f4 = new AboutusFragment(this, userName);
            setFragment(f1);
        }
 public void alertSuccessButton(object sender, Android.Content.DialogClickEventArgs e)
 {
     //System.Console.WriteLine("OK Button Pressed");
     AboutusFragment f1 = new AboutusFragment(myContext, myEmailId.Text.Trim());
     setFragment(f1);
 }