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.imageTop) @Nullable ImageView imageTop; @BindView(R.id.imageTop1) @Nullable ImageView imageTop1; @BindView(R.id.imageTop2) @Nullable ImageView imageTop2; @BindView(R.id.imageTop3) @Nullable ImageView imageTop3; @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; @Nullable @BindView(R.id.tvProgress) TextView tvProgress; @Nullable @BindView(R.id.tvReadtime) TextView tvReadtime; @Nullable @BindView(R.id.tvLastRead) TextView tvLastRead; @Nullable @BindView(R.id.tvImportTitle) TextView tvImportTitle; public MyViewHolder(View view) { super(view); ButterKnife.bind(this, view); //tvTitle = (TextView) view.findViewById(R.id.title); // tvAuthor = (TextView) view.findViewById(R.id.author); } }