private void AddGenreChips(ChipGroup chipGroup) { if (chipGroup.ChildCount > 0) { chipGroup.RemoveAllViews(); } foreach (var item in ViewModel.MovieDetails.Genres) { var chip = BuildChip(item); chipGroup.AddView(chip); } }
public override void Bind(IStat item, StatsRecyclerAdapter adapter) { if (item is Job model) { TitleTextView.Text = model.Type; EnemyLevelsTextView.Text = $"Level {model.MinEnemyLevel} - {model.MaxEnemyLevel}"; StandingsTextView.Text = model.TotalStanding.ToString(); RewardsChipGroup.RemoveAllViews(); foreach (var reward in model.RewardPool) { RewardsChipGroup.AddView(GetChip(reward)); } } }