Search Results: Add transparency to played episodes
This commit is contained in:
parent
b5928194d5
commit
658594e90f
|
@ -11,6 +11,7 @@ import android.widget.ImageView;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
import com.bumptech.glide.Glide;
|
import com.bumptech.glide.Glide;
|
||||||
|
import com.nineoldandroids.view.ViewHelper;
|
||||||
|
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
import de.danoeh.antennapod.core.feed.Feed;
|
import de.danoeh.antennapod.core.feed.Feed;
|
||||||
|
@ -96,6 +97,12 @@ public class SearchlistAdapter extends BaseAdapter {
|
||||||
holder.subtitle.setText(result.getSubtitle());
|
holder.subtitle.setText(result.getSubtitle());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(item.isPlayed()) {
|
||||||
|
ViewHelper.setAlpha(convertView, 0.5f);
|
||||||
|
} else {
|
||||||
|
ViewHelper.setAlpha(convertView, 1.0f);
|
||||||
|
}
|
||||||
|
|
||||||
Glide.with(context)
|
Glide.with(context)
|
||||||
.load(item.getFeed().getImageLocation())
|
.load(item.getFeed().getImageLocation())
|
||||||
.placeholder(R.color.light_gray)
|
.placeholder(R.color.light_gray)
|
||||||
|
|
Loading…
Reference in New Issue