-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathListHeroAdapter.java
More file actions
60 lines (39 loc) · 1.25 KB
/
ListHeroAdapter.java
File metadata and controls
60 lines (39 loc) · 1.25 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
50
51
52
53
54
55
56
57
58
59
60
package com.example.dheo.mvplisthero.Utama;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.dheo.mvplisthero.Base.BasePresenter;
import com.example.dheo.mvplisthero.Model.Hero;
import java.util.ArrayList;
public class ListHeroAdapter extends RecyclerView.Adapter<ListHeroAdapter.ListViewHolder> implements BasePresenter<MainContract.MainView> {
MainContract.MainView _view;
private ArrayList<Hero> listHero;
public ListHeroAdapter(ArrayList<Hero> list) {
this.listHero = list;
}
@NonNull
@Override
public ListViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
return null;
}
@Override
public void onBindViewHolder(@NonNull ListViewHolder holder, int position) {
}
@Override
public int getItemCount() {
return 0;
}
@Override
public void onAttach(MainContract.MainView view) {
_view = view;
}
public void onDettach() {
_view = null;
}
public class ListViewHolder extends RecyclerView.ViewHolder {
public ListViewHolder(@NonNull View itemView) {
super(itemView);
}
}
}