pda/zhuike/src/main/java/com/novelbook/android/adapter/MyViewHolder.java

47 lines
1.2 KiB
Java
Raw Normal View History

2019-04-02 17:41:53 +08:00
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;
2019-04-26 00:31:07 +08:00
@BindView(R.id.imageUpdated)
@Nullable
ImageView imageUpdate;
2019-04-02 17:41:53 +08:00
@BindView(R.id.title)
TextView tvTitle;
@Nullable
@BindView(R.id.author)
TextView tvAuthor;
@Nullable
@BindView(R.id.category)
TextView tvCate;
@Nullable
2019-04-26 00:31:07 +08:00
@BindView(R.id.tvNovelStatus)
TextView tvStatus;
@Nullable
2019-04-02 17:41:53 +08:00
@BindView(R.id.desc)
TextView tvDesc;
@Nullable
@BindView(R.id.tvCateNums)
2019-04-26 00:31:07 +08:00
2019-04-02 17:41:53 +08:00
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);
}
}