package com.novelbook.android.adapter; import android.support.annotation.Nullable; import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.ImageView; import android.widget.TextView; import com.novelbook.android.R; import butterknife.BindView; import butterknife.ButterKnife; public class MyViewHolder extends RecyclerView.ViewHolder { @BindView(R.id.imageView) ImageView imageView; @BindView(R.id.imageUpdated) @Nullable ImageView imageUpdate; @BindView(R.id.title) TextView tvTitle; @Nullable @BindView(R.id.author) TextView tvAuthor; @Nullable @BindView(R.id.category) TextView tvCate; @Nullable @BindView(R.id.tvNovelStatus) TextView tvStatus; @Nullable @BindView(R.id.desc) TextView tvDesc; @Nullable @BindView(R.id.tvCateNums) TextView tvNum; public MyViewHolder(View view) { super(view); ButterKnife.bind(this, view); //tvTitle = (TextView) view.findViewById(R.id.title); // tvAuthor = (TextView) view.findViewById(R.id.author); } }