いろいろ

This commit is contained in:
ろむねこ 2024-01-16 10:29:15 +09:00
parent cec7f3bb15
commit 0f4b66eb37
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
2 changed files with 17 additions and 0 deletions

View File

@ -2,6 +2,7 @@ package one.nem.lacerta.component.scanner;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import androidx.activity.EdgeToEdge;
import androidx.annotation.AnimatorRes;
@ -15,10 +16,16 @@ import com.websitebeaver.documentscanner.DocumentScanner;
import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
import one.nem.lacerta.utils.LacertaLogger;
@AndroidEntryPoint
public class ScannerManagerActivity extends AppCompatActivity {
@Inject
LacertaLogger logger;
View view;
DocumentScanner documentScanner = new DocumentScanner(
this,
(croppedImageResults) -> {
@ -54,6 +61,15 @@ public class ScannerManagerActivity extends AppCompatActivity {
documentScanner.startScan();
// Init
this.view = findViewById(R.id.main); // TODO-rca:なんとかする
}
private void initResultView() {
if (this.view == null) {
return;
}
}
}

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent">