Skip to content

Commit

Permalink
Added little icons to the listview indicating user data #9
Browse files Browse the repository at this point in the history
  • Loading branch information
selmaohneh committed Jan 5, 2019
1 parent a0f0762 commit 094cdca
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 129 deletions.
6 changes: 6 additions & 0 deletions DdfGuide.Android/AudioDramaListAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ public override View GetView(int position, View convertView, ViewGroup parent)
var imageView = view.FindViewById<ImageViewAsync>(Resource.Id.coverview);
_imageViewFiller.FillImageViewFromUrl(imageView, audioDrama.AudioDramaDto.CoverUrl);

var heardView = view.FindViewById<CheckBox>(Resource.Id.listcheckboxheard);
heardView.Checked = audioDrama.AudioDramaUserData.Heard;

var favoriteView = view.FindViewById<CheckBox>(Resource.Id.listcheckboxfavorite);
favoriteView.Checked = audioDrama.AudioDramaUserData.IsFavorite;

if (audioDrama.AudioDramaDto.ReleaseDate > DateTime.Now)
{
view.SetBackgroundColor(Color.LightGray);
Expand Down
Loading

0 comments on commit 094cdca

Please sign in to comment.