Search in sources :

Example 1 with SubmissionViewHolder

use of me.ccrama.redditslide.Adapters.SubmissionViewHolder in project Slide by ccrama.

the class RedditItemView method doSubmission.

public void doSubmission(Submission submission, View content) {
    final SubmissionViewHolder holder = new SubmissionViewHolder(content);
    CreateCardView.resetColorCard(holder.itemView);
    if (submission.getSubredditName() != null) {
        CreateCardView.colorCard(submission.getSubredditName().toLowerCase(Locale.ENGLISH), holder.itemView, "no_subreddit", false);
    }
    new PopulateSubmissionViewHolder().populateSubmissionViewHolder(holder, submission, ((PeekViewActivity) getContext()), false, false, null, null, false, false, null, null);
}
Also used : SubmissionViewHolder(me.ccrama.redditslide.Adapters.SubmissionViewHolder) PopulateSubmissionViewHolder(me.ccrama.redditslide.SubmissionViews.PopulateSubmissionViewHolder) PopulateSubmissionViewHolder(me.ccrama.redditslide.SubmissionViews.PopulateSubmissionViewHolder) PeekViewActivity(me.ccrama.redditslide.ForceTouch.PeekViewActivity)

Aggregations

SubmissionViewHolder (me.ccrama.redditslide.Adapters.SubmissionViewHolder)1 PeekViewActivity (me.ccrama.redditslide.ForceTouch.PeekViewActivity)1 PopulateSubmissionViewHolder (me.ccrama.redditslide.SubmissionViews.PopulateSubmissionViewHolder)1