protected override View GetViewImpl(Context context, ViewGroup parent) { View view = DroidResources.LoadAchievementsElementLayout(context, parent, LayoutName); if (view == null) { Android.Util.Log.Error("AchievementElement", "GetViewImpl failed to load template view"); } return(view); }
public override View GetView(Context context, View convertView, ViewGroup parent) { View view = DroidResources.LoadAchievementsElementLayout(context, convertView, parent, LayoutId, out _caption, out _description, out _percentageComplete, out _achivementImage); if (view != null) { _caption.Text = Caption; _description.Text = Description; _percentageComplete.Text = PercentageComplete.ToString(); if (AchievementImage != null) { _achivementImage.SetImageBitmap(AchievementImage); } } else { Android.Util.Log.Error("AchievementElement", "GetView failed to load template view"); } return(view); }