Search in sources :

Example 6 with PopulateSubmissionViewHolder

use of me.ccrama.redditslide.SubmissionViews.PopulateSubmissionViewHolder 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

PopulateSubmissionViewHolder (me.ccrama.redditslide.SubmissionViews.PopulateSubmissionViewHolder)6 RecyclerView (android.support.v7.widget.RecyclerView)5 View (android.view.View)5 LinearLayout (android.widget.LinearLayout)5 TextView (android.widget.TextView)5 Intent (android.content.Intent)4 Snackbar (android.support.design.widget.Snackbar)4 CreateCardView (me.ccrama.redditslide.Views.CreateCardView)4 Submission (net.dean.jraw.models.Submission)4 DialogInterface (android.content.DialogInterface)3 ImageView (android.widget.ImageView)3 AlertDialogWrapper (com.afollestad.materialdialogs.AlertDialogWrapper)3 SubredditView (me.ccrama.redditslide.Activities.SubredditView)3 OpenRedditLink (me.ccrama.redditslide.OpenRedditLink)3 CatchStaggeredGridLayoutManager (me.ccrama.redditslide.Views.CatchStaggeredGridLayoutManager)3 OnSingleClickListener (me.ccrama.redditslide.util.OnSingleClickListener)3 Comment (net.dean.jraw.models.Comment)3 Dialog (android.app.Dialog)2 TypedArray (android.content.res.TypedArray)2 Typeface (android.graphics.Typeface)2