protected void DataTemplateFling(View view, int i, MalClubEntry arg3, ClubItemViewHolder arg4) { if (!string.IsNullOrEmpty(arg3.ImgUrl)) { if (!arg4.Image.IntoIfLoaded(arg3.ImgUrl)) { arg4.Image.Visibility = ViewStates.Invisible; } } }
protected void DataTemplateBasic(View view, int i, MalClubEntry arg3, ClubItemViewHolder arg4) { arg4.Name.Text = arg3.Name; arg4.Description.Text = arg3.Description; if (string.IsNullOrEmpty(arg3.ImgUrl)) { arg4.ImgPlaceholder.Visibility = ViewStates.Gone; arg4.NoImageIcon.Visibility = ViewStates.Visible; } else { arg4.ImgPlaceholder.Visibility = ViewStates.Visible; arg4.NoImageIcon.Visibility = ViewStates.Gone; } arg4.Members.Text = arg3.Members; if (string.IsNullOrEmpty(arg3.LastPost)) { arg4.LastPostSection.Visibility = ViewStates.Gone; } else { arg4.LastPostSection.Visibility = ViewStates.Visible; arg4.LastPostDate.Text = arg3.LastPost; } if (string.IsNullOrEmpty(arg3.LastCommentDate)) { arg4.LastCommentSection.Visibility = ViewStates.Gone; } else { arg4.LastCommentSection.Visibility = ViewStates.Visible; arg4.LastCommentDate.Text = arg3.LastCommentDate; } if (arg3.JoinType != MalClubEntry.JoinAction.None) { arg4.JoinButton.Visibility = ViewStates.Visible; arg4.RightSection.LayoutParameters.Width = DimensionsHelper.DpToPx(85); arg4.JoinButton.Text = arg3.JoinButtonText; arg4.JoinButton.Tag = view.Tag; } else { arg4.JoinButton.Visibility = ViewStates.Gone; arg4.RightSection.LayoutParameters.Width = DimensionsHelper.DpToPx(75); } }