From 380e8117b8419a9369b276f8fd2be40ba40d75e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Tue, 16 Jan 2024 11:06:44 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=97=E3=83=AC=E3=83=93=E3=83=A5=E3=83=BC?= =?UTF-8?q?=E5=AE=9F=E8=A3=85=20WIP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nem/lacerta/component/scanner/ScannerManagerActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerManagerActivity.java b/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerManagerActivity.java index 0fb77633..74f0872d 100644 --- a/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerManagerActivity.java +++ b/component/scanner/src/main/java/one/nem/lacerta/component/scanner/ScannerManagerActivity.java @@ -108,6 +108,7 @@ public class ScannerManagerActivity extends AppCompatActivity { logger.debug(TAG, "updateResultView"); LinearLayout resultView = findViewById(R.id.result_list_container); + ImageView selectedImage = findViewById(R.id.selected_image); resultView.removeAllViews(); for (Bitmap resultImage : resultImages) { @@ -116,7 +117,7 @@ public class ScannerManagerActivity extends AppCompatActivity { imageView.setImageBitmap(resultImage); imageView.setOnClickListener(v -> { // タッチされた画像をプレビューに設定します。 -// selectedImage.setImageBitmap(resultImage); + selectedImage.setImageBitmap(resultImage); // すべての画像の選択状態を解除します。 for (int i = 0; i < resultView.getChildCount(); i++) { View child = resultView.getChildAt(i).findViewById(R.id.result_image);