diff --git a/app/src/main/java/com/example/nemophila/RequestedActivity.java b/app/src/main/java/com/example/nemophila/RequestedActivity.java index 7ef5534..0462074 100644 --- a/app/src/main/java/com/example/nemophila/RequestedActivity.java +++ b/app/src/main/java/com/example/nemophila/RequestedActivity.java @@ -25,6 +25,7 @@ public class RequestedActivity extends AppCompatActivity { + //初期化 FriendViewModel friendViewModel = new ViewModelProvider(this).get(FriendViewModel.class); Nemophila nemophila = (Nemophila) this.getApplication(); List requestedDataSet = new ArrayList<>(); @@ -63,6 +64,8 @@ data.setName(acj.getName()); requestedDataSet.add(data); } + adapter.setList(requestedDataSet); + rv.setAdapter(adapter); } }); }