Skip to content

Instantly share code, notes, and snippets.

@Delaire
Created January 14, 2020 13:13
Show Gist options
  • Save Delaire/e1c95c1543b351b5dcd82dcfd4bb104f to your computer and use it in GitHub Desktop.
Save Delaire/e1c95c1543b351b5dcd82dcfd4bb104f to your computer and use it in GitHub Desktop.
public class RadioItemAdapterViewHolder : Java.Lang.Object
{
//adapter views to re-use
public TextView StationNameTxt;
public TextView StationLocationTxt;
public ImageView StationLogo;
public ImageView FavoriteImg;
public RadioItemAdapterViewHolder(View itemView) : base(itemView)
{
StationNameTxt = itemView.FindViewById<TextView>(Resource.Id.StationNameTxt);
StationLocationTxt = itemView.FindViewById<TextView>(Resource.Id.StationLocationTxt);
StationLogo = itemView.FindViewById<ImageView>(Resource.Id.RadioLogoImg);
FavoriteImg = itemView.FindViewById<ImageView>(Resource.Id.FavoriteImg);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment