public override Android.Support.V4.App.Fragment GetItem(int position) { switch (position) { case 0: return(ContactsFragment.NewInstance()); case 1: return(EventsFragment.NewInstance()); } return(null); }
//Open User Contact >> Followers private void LayoutFollowersOnClick(object sender, EventArgs e) { try { Bundle bundle = new Bundle(); bundle.PutString("UserId", UserId); bundle.PutString("UserType", "Followers"); ContactsFragment contactsFragment = new ContactsFragment { Arguments = bundle }; GlobalContext.FragmentBottomNavigator.DisplayFragment(contactsFragment); } catch (Exception exception) { Console.WriteLine(exception); } }
private void LayoutFollowersOnClick(object sender, EventArgs e) { try { Bundle bundle = new Bundle(); bundle.PutString("UserId", DataUser.Id.ToString()); bundle.PutString("UserType", "Followers"); ContactsFragment contactsFragment = new ContactsFragment { Arguments = bundle }; HomeActivity.GetInstance().FragmentBottomNavigator.DisplayFragmentOnSamePage(contactsFragment); Finish(); } catch (Exception exception) { Console.WriteLine(exception); } }