Example #1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            // Use this to return your custom view for this Fragment
            // return inflater.Inflate(Resource.Layout.YourFragment, container, false);
            //return base.OnCreateView(inflater, container, savedInstanceState);
            myView = inflater.Inflate(Resource.Layout.myLibraryMenu, container, false);

            //popular
            mPhotoAlbum  = new PhotoAlbum2(myContext, userEmail);
            mRecycleView = myView.FindViewById <RecyclerView>(Resource.Id.recyclerView2);
            //mRecycleView.SetLayoutManager(new LinearLayoutManager(myView.Context, LinearLayoutManager.Horizontal, false));
            mLayoutManager = new LinearLayoutManager(myView.Context);
            mRecycleView.SetLayoutManager(mLayoutManager);
            mAdapter            = new PhotoAlbumAdapter2(mPhotoAlbum);
            mAdapter.ItemClick += MAdapter_ItemClick;
            mRecycleView.SetAdapter(mAdapter);


            return(myView);
        }
Example #2
0
 public PhotoAlbumAdapter2(PhotoAlbum2 photoAlbum)
 {
     mPhotoAlbum = photoAlbum;
 }