Transparency for played items
This commit is contained in:
parent
61754cae52
commit
b0f0d106da
|
@ -14,6 +14,8 @@ import android.widget.ImageView;
|
||||||
import android.widget.ProgressBar;
|
import android.widget.ProgressBar;
|
||||||
import android.widget.TextView;
|
import android.widget.TextView;
|
||||||
|
|
||||||
|
import com.nineoldandroids.view.ViewHelper;
|
||||||
|
|
||||||
import de.danoeh.antennapod.R;
|
import de.danoeh.antennapod.R;
|
||||||
import de.danoeh.antennapod.core.feed.FeedItem;
|
import de.danoeh.antennapod.core.feed.FeedItem;
|
||||||
import de.danoeh.antennapod.core.feed.FeedMedia;
|
import de.danoeh.antennapod.core.feed.FeedMedia;
|
||||||
|
@ -115,6 +117,11 @@ public class FeedItemlistAdapter extends BaseAdapter {
|
||||||
} else {
|
} else {
|
||||||
holder.statusUnread.setVisibility(View.INVISIBLE);
|
holder.statusUnread.setVisibility(View.INVISIBLE);
|
||||||
}
|
}
|
||||||
|
if(item.isRead()) {
|
||||||
|
ViewHelper.setAlpha(convertView, 0.5f);
|
||||||
|
} else {
|
||||||
|
ViewHelper.setAlpha(convertView, 1.0f);
|
||||||
|
}
|
||||||
|
|
||||||
holder.published.setText(DateUtils.formatDateTime(context, item.getPubDate().getTime(), DateUtils.FORMAT_ABBREV_ALL));
|
holder.published.setText(DateUtils.formatDateTime(context, item.getPubDate().getTime(), DateUtils.FORMAT_ABBREV_ALL));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue