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; }
public ResponsesHomeAdapter(Activity _activity, ResponsesEnum enumVideo) { activity = _activity; VideoEnum = enumVideo; }
public ResponsesFragment(ResponsesEnum _videoEnum, bool data) { VideoEnum = _videoEnum; loadData = data; //GetAdminVideoList(); }