diff --git a/app/src/main/java/org/ntlab/irisclient/DrawingCardFragment.java b/app/src/main/java/org/ntlab/irisclient/DrawingCardFragment.java index de2587a..5d6fc4c 100644 --- a/app/src/main/java/org/ntlab/irisclient/DrawingCardFragment.java +++ b/app/src/main/java/org/ntlab/irisclient/DrawingCardFragment.java @@ -147,7 +147,7 @@ gameViewModel.getImageLiveData().observe( getViewLifecycleOwner(), gameJsonObserver -> { - System.out.println("kota: getImageLiveDataが"); + System.out.println("kota: getImageLiveDataが取得:" + gameJsonObserver); setupWithViewModel(); } ); @@ -236,6 +236,7 @@ } } + return false; } @@ -255,9 +256,12 @@ map = gameViewModel.getGame().getMap(); colorList = gameViewModel.getGame().getColorList(); + System.out.println("adfasfasdfsf"+drawingList); + Context context = getContext(); - for (int i = 0; i < drawingList.size(); i++) { + for (int i = 0; i < 16; i++) { + // タップとロングタップのセット imageButtons[i].setOnClickListener(this::onClick); imageButtons[i].setOnLongClickListener(this::onLongTap); @@ -265,6 +269,7 @@ // 画像のセット String urlSt = drawingList.get(map.get(i)).getDrawing(); + System.out.println(i+urlSt); setImage(i, urlSt, context); // 初回だけセットする外枠の、メンバーとマスターで表示分け