プレビュー実装 WIP

This commit is contained in:
ろむねこ 2024-01-16 11:06:44 +09:00
parent a6aeb5480a
commit 380e8117b8
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -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);