diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/gpodnet/PodcastListAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/gpodnet/PodcastListAdapter.java index 58af2c4d5..b85709c5e 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/gpodnet/PodcastListAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/gpodnet/PodcastListAdapter.java @@ -39,16 +39,15 @@ public class PodcastListAdapter extends ArrayAdapter { .getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = inflater.inflate(R.layout.gpodnet_podcast_listitem, parent, false); - holder.title = (TextView) convertView.findViewById(R.id.txtvTitle); holder.image = (ImageView) convertView.findViewById(R.id.imgvCover); - + holder.title = (TextView) convertView.findViewById(R.id.txtvTitle); + holder.subscribers = (TextView) convertView.findViewById(R.id.txtvSubscribers); + holder.url = (TextView) convertView.findViewById(R.id.txtvUrl); convertView.setTag(holder); } else { holder = (Holder) convertView.getTag(); } - holder.title.setText(podcast.getTitle()); - if (StringUtils.isNotBlank(podcast.getLogoUrl())) { Picasso.with(convertView.getContext()) .load(podcast.getLogoUrl()) @@ -56,11 +55,17 @@ public class PodcastListAdapter extends ArrayAdapter { .into(holder.image); } + holder.title.setText(podcast.getTitle()); + holder.subscribers.setText(String.valueOf(podcast.getSubscribers())); + holder.url.setText(podcast.getUrl()); + return convertView; } static class Holder { - TextView title; ImageView image; + TextView title; + TextView subscribers; + TextView url; } } diff --git a/app/src/main/res/layout/gpodnet_podcast_listitem.xml b/app/src/main/res/layout/gpodnet_podcast_listitem.xml index 2ade8e478..8890f1b77 100644 --- a/app/src/main/res/layout/gpodnet_podcast_listitem.xml +++ b/app/src/main/res/layout/gpodnet_podcast_listitem.xml @@ -23,16 +23,71 @@ tools:src="@drawable/ic_stat_antenna_default" tools:background="@android:color/holo_green_dark" /> + + + + + + + + + + + + diff --git a/core/src/main/res/drawable-hdpi/ic_feed_grey600_24dp.png b/core/src/main/res/drawable-hdpi/ic_feed_grey600_24dp.png new file mode 100755 index 000000000..46be3e14e Binary files /dev/null and b/core/src/main/res/drawable-hdpi/ic_feed_grey600_24dp.png differ diff --git a/core/src/main/res/drawable-hdpi/ic_feed_white_24dp.png b/core/src/main/res/drawable-hdpi/ic_feed_white_24dp.png new file mode 100755 index 000000000..3d57127f5 Binary files /dev/null and b/core/src/main/res/drawable-hdpi/ic_feed_white_24dp.png differ diff --git a/core/src/main/res/drawable-mdpi/ic_feed_grey600_24dp.png b/core/src/main/res/drawable-mdpi/ic_feed_grey600_24dp.png new file mode 100755 index 000000000..79f082610 Binary files /dev/null and b/core/src/main/res/drawable-mdpi/ic_feed_grey600_24dp.png differ diff --git a/core/src/main/res/drawable-mdpi/ic_feed_white_24dp.png b/core/src/main/res/drawable-mdpi/ic_feed_white_24dp.png new file mode 100755 index 000000000..15a4b16bf Binary files /dev/null and b/core/src/main/res/drawable-mdpi/ic_feed_white_24dp.png differ diff --git a/core/src/main/res/drawable-xhdpi/ic_feed_grey600_24dp.png b/core/src/main/res/drawable-xhdpi/ic_feed_grey600_24dp.png new file mode 100755 index 000000000..5cb0262ee Binary files /dev/null and b/core/src/main/res/drawable-xhdpi/ic_feed_grey600_24dp.png differ diff --git a/core/src/main/res/drawable-xhdpi/ic_feed_white_24dp.png b/core/src/main/res/drawable-xhdpi/ic_feed_white_24dp.png new file mode 100755 index 000000000..5f34b0492 Binary files /dev/null and b/core/src/main/res/drawable-xhdpi/ic_feed_white_24dp.png differ diff --git a/core/src/main/res/drawable-xxhdpi/ic_feed_grey600_24dp.png b/core/src/main/res/drawable-xxhdpi/ic_feed_grey600_24dp.png new file mode 100755 index 000000000..01ef2ee4d Binary files /dev/null and b/core/src/main/res/drawable-xxhdpi/ic_feed_grey600_24dp.png differ diff --git a/core/src/main/res/drawable-xxhdpi/ic_feed_white_24dp.png b/core/src/main/res/drawable-xxhdpi/ic_feed_white_24dp.png new file mode 100755 index 000000000..6dd465852 Binary files /dev/null and b/core/src/main/res/drawable-xxhdpi/ic_feed_white_24dp.png differ diff --git a/core/src/main/res/values/attrs.xml b/core/src/main/res/values/attrs.xml index f36119c8d..368921f76 100644 --- a/core/src/main/res/values/attrs.xml +++ b/core/src/main/res/values/attrs.xml @@ -11,6 +11,7 @@ + diff --git a/core/src/main/res/values/styles.xml b/core/src/main/res/values/styles.xml index a2f180395..e8b0e2b2b 100644 --- a/core/src/main/res/values/styles.xml +++ b/core/src/main/res/values/styles.xml @@ -15,6 +15,7 @@ @drawable/ic_delete_grey600_24dp @drawable/ic_add_grey600_24dp @drawable/ic_timer_grey600_24dp + @drawable/ic_feed_grey600_24dp @drawable/ic_web_grey600_24dp @drawable/ic_done_grey600_24dp @drawable/ic_cancel_grey600_24dp @@ -56,6 +57,7 @@ @drawable/ic_delete_white_24dp @drawable/ic_add_white_24dp @drawable/ic_timer_white_24dp + @drawable/ic_feed_white_24dp @drawable/ic_web_white_24dp @drawable/ic_done_white_24dp @drawable/ic_cancel_white_24dp @@ -100,6 +102,7 @@ @drawable/ic_delete_grey600_24dp @drawable/ic_add_grey600_24dp @drawable/ic_timer_grey600_24dp + @drawable/ic_feed_grey600_24dp @drawable/ic_web_grey600_24dp @drawable/ic_done_grey600_24dp @drawable/ic_cancel_grey600_24dp @@ -143,6 +146,7 @@ @drawable/ic_delete_white_24dp @drawable/ic_add_white_24dp @drawable/ic_timer_white_24dp + @drawable/ic_feed_white_24dp @drawable/ic_web_white_24dp @drawable/ic_done_white_24dp @drawable/ic_cancel_white_24dp