40 lines
1.0 KiB
Java
40 lines
1.0 KiB
Java
|
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.title)
|
||
|
TextView tvTitle;
|
||
|
@Nullable
|
||
|
@BindView(R.id.author)
|
||
|
TextView tvAuthor;
|
||
|
@Nullable
|
||
|
@BindView(R.id.category)
|
||
|
TextView tvCate;
|
||
|
@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);
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|