Exemple #1
0
        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);
            }
        }
Exemple #3
0
        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);
            }
        }