Search Results: Add transparency to played episodes

This commit is contained in:
orelogo 2016-07-13 13:44:48 -04:00
parent b5928194d5
commit 658594e90f
1 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.nineoldandroids.view.ViewHelper;
import de.danoeh.antennapod.R;
import de.danoeh.antennapod.core.feed.Feed;
@ -96,6 +97,12 @@ public class SearchlistAdapter extends BaseAdapter {
holder.subtitle.setText(result.getSubtitle());
}
if(item.isPlayed()) {
ViewHelper.setAlpha(convertView, 0.5f);
} else {
ViewHelper.setAlpha(convertView, 1.0f);
}
Glide.with(context)
.load(item.getFeed().getImageLocation())
.placeholder(R.color.light_gray)