protected virtual void UpdatePercentageCompleteDisplay(View cell) { if (cell == null) { return; } ImageView achivementImage; TextView caption; TextView description; TextView percentageComplete; DroidResources.DecodeAchievementsElementLayout(Context, cell, out caption, out description, out percentageComplete, out achivementImage); if (percentageComplete != null) { percentageComplete.Text = PercentageComplete.ToString(CultureInfo.InvariantCulture); } }
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); }
protected virtual void UpdateDescriptionDisplay(View cell) { if (cell == null) { return; } ImageView achivementImage; TextView caption; TextView description; TextView percentageComplete; DroidResources.DecodeAchievementsElementLayout(Context, cell, out caption, out description, out percentageComplete, out achivementImage); // TODO - this is slow for things which don't need complete rebinding... caption.Text = Caption; description.Text = Description; percentageComplete.Text = PercentageComplete.ToString(CultureInfo.InvariantCulture); if (AchievementImage != null) { achivementImage.SetImageBitmap(AchievementImage); } }