Example #1
0
        public static playlistFragment NewInstance()
        {
            var playlistFragment = new playlistFragment {
                Arguments = new Bundle()
            };

            return(playlistFragment);
        }
        void LoadPlaylist(int id)
        {
            //create playlist fragment and pass name into bundle
            Bundle nameBundle = new Bundle();
            string name       = playlists[id].name;

            nameBundle.PutString("playlistName", name);
            Android.Support.V4.App.Fragment playlistFragment = null;

            playlistFragment = new playlistFragment();

            var ft = FragmentManager.BeginTransaction();

            ft.Replace(Resource.Id.content_frame, playlistFragment).AddToBackStack(id.ToString());
            ft.Commit();

            playlistFragment.Arguments = nameBundle;
        }