コンストラクタ追加

This commit is contained in:
r-ca 2024-01-20 23:23:54 +09:00
parent 7214da80fa
commit 1b70b444f2
No known key found for this signature in database
GPG Key ID: 6A72911AC73464A9

View File

@ -21,6 +21,14 @@ public class ListItemAdapter extends RecyclerView.Adapter<ListItemAdapter.ListIt
this.listItems = listItems;
}
public ListItemAdapter() {
this.listItems = new ArrayList<>();
}
public void setListItems(ArrayList<ListItem> listItems) {
this.listItems = listItems;
}
@NonNull
@Override
public ListItemAdapter.ListItemViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {