diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2014-06-07 13:17:25 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2014-06-07 13:17:25 +0200 |
commit | d058b474601f373d2e6682e5d4a79f019f993923 (patch) | |
tree | 491bbbad71739020da8f29981c45e9a0477fce7b /src/de/danoeh/antennapod/adapter | |
parent | 2629c9ee22ad5bb47c001f25c098267de7964262 (diff) | |
download | AntennaPod-d058b474601f373d2e6682e5d4a79f019f993923.zip |
Added 'new' indicator to all episodes view + layout improvements
Diffstat (limited to 'src/de/danoeh/antennapod/adapter')
-rw-r--r-- | src/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java b/src/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java index 4a959dfd2..555a334f6 100644 --- a/src/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java +++ b/src/de/danoeh/antennapod/adapter/NewEpisodesListAdapter.java @@ -66,6 +66,7 @@ public class NewEpisodesListAdapter extends BaseAdapter { holder.title = (TextView) convertView.findViewById(R.id.txtvTitle); holder.pubDate = (TextView) convertView .findViewById(R.id.txtvPublished); + holder.statusUnread = convertView.findViewById(R.id.statusUnread); holder.butSecondary = (ImageButton) convertView .findViewById(R.id.butSecondaryAction); holder.queueStatus = (ImageView) convertView @@ -81,6 +82,11 @@ public class NewEpisodesListAdapter extends BaseAdapter { holder.title.setText(item.getTitle()); holder.pubDate.setText(DateUtils.formatDateTime(context, item.getPubDate().getTime(), DateUtils.FORMAT_SHOW_DATE)); + if (item.isRead()) { + holder.statusUnread.setVisibility(View.GONE); + } else { + holder.statusUnread.setVisibility(View.VISIBLE); + } FeedMedia media = item.getMedia(); if (media != null) { @@ -140,6 +146,7 @@ public class NewEpisodesListAdapter extends BaseAdapter { static class Holder { TextView title; TextView pubDate; + View statusUnread; ImageView queueStatus; ImageView imageView; ProgressBar downloadProgress; |