RecyclerHolder.java
1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.lijinji.call.adapter;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.lijinji.call.R;
public class RecyclerHolder extends RecyclerView.ViewHolder{
private ImageView icon;
private TextView textView;
private LinearLayout linelayout;
public RecyclerHolder(@NonNull View itemView) {
super(itemView);
icon = (ImageView) itemView.findViewById(R.id.contentIcon);
textView = (TextView) itemView.findViewById(R.id.contentName);
linelayout = (LinearLayout) itemView.findViewById(R.id.linearLayout);
}
public ImageView getIcon() {
return icon;
}
public void setIcon(ImageView icon) {
this.icon = icon;
}
public TextView getTextView() {
return textView;
}
public void setTextView(TextView textView) {
this.textView = textView;
}
public LinearLayout getLinelayout() {
return linelayout;
}
public void setLinelayout(LinearLayout linelayout) {
this.linelayout = linelayout;
}
}