diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentAdapter.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentAdapter.java index 12b4fdef..ae187769 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentAdapter.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/DocumentAdapter.java @@ -10,12 +10,14 @@ import androidx.recyclerview.widget.RecyclerView; import java.util.List; +import one.nem.lacerta.model.document.DocumentMeta; + public class DocumentAdapter extends RecyclerView.Adapter { - private List documentList; + private List documentMetas; - public DocumentAdapter(List documentList) { - this.documentList = documentList; + public DocumentAdapter(List documentMetas) { + this.documentMetas = documentMetas; } @NonNull @@ -27,12 +29,13 @@ public class DocumentAdapter extends RecyclerView.Adapter metas = new ArrayList<>(); metas = document.getAllDocumentMetas(100); Toast.makeText(getContext(), "Documents: " + Integer.toString(metas.size()), Toast.LENGTH_LONG).show(); - - List documentList = new ArrayList<>(); - documentList.add("Document A"); - documentList.add("Document B"); - documentList.add("Document C"); + //仮データを取得 +// List documentList = new ArrayList<>(); +// documentList.add("Document A"); +// documentList.add("Document B"); +// documentList.add("Document C"); // Create and set the adapter - DocumentAdapter adapter = new DocumentAdapter(documentList); + DocumentAdapter adapter = new DocumentAdapter(metas); documentRecyclerView.setAdapter(adapter); // Use a LinearLayoutManager to specify the layout