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.homeMenu, container, false);

            //popular
            mPhotoAlbum  = new PhotoAlbum(myContext);
            mRecycleView = myView.FindViewById <RecyclerView>(Resource.Id.recyclerView);
            mRecycleView.SetLayoutManager(new LinearLayoutManager(myView.Context, LinearLayoutManager.Horizontal, false));
            mAdapter            = new PhotoAlbumAdapter(mPhotoAlbum);
            mAdapter.ItemClick += MAdapter_ItemClick;
            mRecycleView.SetAdapter(mAdapter);
            //

            //recent
            mPhotoAlbum1  = new PhotoAlbum1(myContext);
            mRecycleView1 = myView.FindViewById <RecyclerView>(Resource.Id.recyclerView1);
            mRecycleView1.SetLayoutManager(new LinearLayoutManager(myView.Context, LinearLayoutManager.Horizontal, false));
            mAdapter1            = new PhotoAlbumAdapter1(mPhotoAlbum1);
            mAdapter1.ItemClick += MAdapter_ItemClick1;
            mRecycleView1.SetAdapter(mAdapter1);
            //
            return(myView);
        }
Exemplo n.º 2
0
 public PhotoAlbumAdapter1(PhotoAlbum1 photoAlbum)
 {
     mPhotoAlbum = photoAlbum;
 }