Dodanie konstruktora Adaptera
This commit is contained in:
parent
43a1665cef
commit
9d81fef925
@ -25,6 +25,12 @@ public class NoteAdapter extends RecyclerView.Adapter<NoteAdapter.ViewHolder>{
|
||||
//obiekt listy notatek
|
||||
private RecyclerView noteRecyclerView;
|
||||
|
||||
//konstruktor
|
||||
public NoteAdapter(ArrayList<Note> Notes, RecyclerView notesRecyclerView) {
|
||||
arrNotes = Notes;
|
||||
noteRecyclerView = notesRecyclerView;
|
||||
}
|
||||
|
||||
//implementacja ViewHoldera
|
||||
public static class ViewHolder extends RecyclerView.ViewHolder {
|
||||
public TextView noteTitle;
|
||||
|
Loading…
Reference in New Issue
Block a user