示例#1
0
        public void SetRecyclerView(ResponsesEnum _videoEnum)
        {
            GridLayoutManager manager = new GridLayoutManager(this.Context, 2);

            recyclerViewUserSettigs.SetLayoutManager(manager);
            if (_videoEnum == ResponsesEnum.FollowingResponses)
            {
                adpater = new ResponsesHomeAdapter(this.Activity, _videoEnum);
                adpater.FollowingResponses = FollowingResponses;
                recyclerViewUserSettigs.SetAdapter(adpater);
            }
            else
            {
                adpater = new ResponsesHomeAdapter(this.Activity, _videoEnum);
                adpater.ForYouResponses = ForYouResponses;
                recyclerViewUserSettigs.SetAdapter(adpater);
            }

            RecyclerViewOnScrollListener xamarinRecyclerViewOnScrollListener = new RecyclerViewOnScrollListener(manager);

            MainScrollEvent = xamarinRecyclerViewOnScrollListener;
            MainScrollEvent.LoadMoreEvent += MainScrollEventOnLoadMoreEvent;
            recyclerViewUserSettigs.AddOnScrollListener(xamarinRecyclerViewOnScrollListener);
            MainScrollEvent.IsLoading = false;
        }
示例#2
0
 public ResponsesHomeAdapter(Activity _activity, ResponsesEnum enumVideo)
 {
     activity  = _activity;
     VideoEnum = enumVideo;
 }
示例#3
0
 public ResponsesFragment(ResponsesEnum _videoEnum, bool data)
 {
     VideoEnum = _videoEnum;
     loadData  = data;
     //GetAdminVideoList();
 }