Newer
Older
NemophilaClient / app / src / main / java / com / example / nemophila / PostsViewHolder.java
package com.example.nemophila;

import android.view.View;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

public class PostsViewHolder extends RecyclerView.ViewHolder {
    public TextView nameView;
    public TextView dateView;
    public TextView rateView;
    public TextView genreView;
    public TextView commentView;

    public PostsViewHolder(@NonNull View itemView) {
        super(itemView);
        nameView = (TextView) itemView.findViewById(R.id.userName);
        dateView = (TextView) itemView.findViewById(R.id.date);
        rateView = (TextView) itemView.findViewById(R.id.rate);
        genreView = (TextView) itemView.findViewById(R.id.genre);
        commentView = (TextView) itemView.findViewById(R.id.comment);
    }
}