public ViewHolder(SwipeRecyclerView recyclerView, int foregroundLayout, int backgroundLayout, bool swipeEnabled = true) : base(Create(recyclerView, foregroundLayout, backgroundLayout))
 {
     this.recyclerView   = recyclerView;
     layout              = ItemView as SwipeMenuLayout;
     layout.recyclerView = recyclerView;
     layout.Init();
     foreground            = ItemView.FindViewById(Resource.Id.swipe_recycler_view_foreground);
     background            = ItemView.FindViewById(Resource.Id.swipe_recycler_view_background);
     layout.isSwipeEnabled = swipeEnabled;
 }
Example #2
0
 public SwipeRecordViewHolder(SwipeRecyclerView rv, int foregroundLayout, int backgroundLayout) : base(rv, foregroundLayout, backgroundLayout)
 {
 }