From d30e68b23fdfc361811fb170cbfa81ced3d72380 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:59:36 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lacerta/component/scanner/ScannerManagerActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 45590cef..dc4c1714 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 @@ -144,14 +144,14 @@ public class ScannerManagerActivity extends AppCompatActivity { ImageView imageView = resultImageView.findViewById(R.id.result_image); imageView.setImageBitmap(resultImage); imageView.setOnClickListener(v -> { - // タッチされた画像をプレビューに設定します。 + selectedImage.setImageBitmap(resultImage); - // すべての画像の選択状態を解除します。 + for (int i = 0; i < resultView.getChildCount(); i++) { View child = resultView.getChildAt(i).findViewById(R.id.result_image); child.setSelected(false); } - // タッチされた画像を選択状態にします。 + v.setSelected(true); });