public ReplyCommentAdapter(ReplyCommentActivity context, RecyclerView mainRecyclerView, string commentId) { try { HasStableIds = true; ActivityContext = context; var mainRecyclerView1 = mainRecyclerView; ApiIdParameter = commentId; var mainLinearLayoutManager = new LinearLayoutManager(context); mainRecyclerView1.SetLayoutManager(mainLinearLayoutManager); var sizeProvider = new FixedPreloadSizeProvider(10, 10); var preLoader = new RecyclerViewPreloader <CommentObjectExtra>(context, this, sizeProvider, 8); mainRecyclerView1.AddOnScrollListener(preLoader); mainRecyclerView1.SetAdapter(this); mainRecyclerView1.HasFixedSize = true; mainRecyclerView1.SetItemViewCacheSize(10); mainRecyclerView1.ClearAnimation(); mainRecyclerView1.GetLayoutManager().ItemPrefetchEnabled = true; mainRecyclerView1.SetItemViewCacheSize(10); MainScrollEvent = new RecyclerScrollListener(); mainRecyclerView1.AddOnScrollListener(MainScrollEvent); MainScrollEvent.LoadMoreEvent += MainScrollEvent_LoadMoreEvent; MainScrollEvent.IsLoading = false; } catch (Exception e) { Console.WriteLine(e); } }
public ReplyCommentAdapter(ReplyCommentActivity context) { try { HasStableIds = true; ActivityContext = context; PostEventListener = new CommentClickListener(ActivityContext, "Reply"); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }
public ReplyCommentAdapter(ReplyCommentActivity context) { try { HasStableIds = true; ActivityContext = context; PostEventListener = new CommentClickListener(ActivityContext, "Reply"); } catch (Exception e) { Console.WriteLine(e); } }
public ReplyCommentAdapter(ReplyCommentActivity context) { try { HasStableIds = true; ActivityContext = context; PostEventListener = new CommentClickListener(ActivityContext, "Reply"); ReadMoreOption = new StReadMoreOption.Builder() .TextLength(250, StReadMoreOption.TypeCharacter) .MoreLabel(ActivityContext.GetText(Resource.String.Lbl_ReadMore)) .LessLabel(ActivityContext.GetText(Resource.String.Lbl_ReadLess)) .MoreLabelColor(Color.ParseColor(AppSettings.MainColor)) .LessLabelColor(Color.ParseColor(AppSettings.MainColor)) .LabelUnderLine(true) .Build(); } catch (Exception e) { Methods.DisplayReportResultTrack(e); } }