public override RecyclerView.ViewHolder OnCreateViewHolder(ViewGroup parent, int viewType)
        {
            var lp = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MatchParent, LinearLayout.LayoutParams.WrapContent);

            if (viewType == (int)ViewType.SubHeader)
            {
                var subHeaderView = new ListSubHeaderView(Context);
                subHeaderView.LayoutParameters = lp;
                return(new ListSubHeaderViewHolder(Context, subHeaderView));
            }
            else
            {
                var listItemView = new ListItemView(Context);
                listItemView.LayoutParameters = lp;
                return(new ListItemViewHolder(Context, listItemView));
            }
        }
 public ListSubHeaderViewHolder(Context context, ListSubHeaderView view) : base(view)
 {
     Context           = context;
     listSubHeaderView = view;
 }
 public static void SetListSubHeader(this ListSubHeaderView s, IListSubHeader listSubHeader)
 {
     s.Title = listSubHeader.Title;
     s.SetTitleColor(listSubHeader.TitleColor);
     s.CustomAccessoryView = listSubHeader.CustomAccessoryView;
 }