From 72c09a2eef97824d38041f0b598a23d118f23bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Wed, 17 Jan 2024 17:54:56 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A2=E3=82=AF=E3=83=86=E3=82=A3=E3=83=93?= =?UTF-8?q?=E3=83=86=E3=82=A3=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/build.gradle | 1 + app/src/main/AndroidManifest.xml | 8 +++++-- .../example/childguard/QrControlActivity.java | 24 +++++++++++++++++++ .../main/res/layout/activity_qr_control.xml | 10 ++++++++ 4 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 app/src/main/java/com/example/childguard/QrControlActivity.java create mode 100644 app/src/main/res/layout/activity_qr_control.xml diff --git a/app/build.gradle b/app/build.gradle index 0e3b833..eda82f8 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -67,6 +67,7 @@ dependencies { // Declare the dependency for the Cloud Firestore library // When using the BoM, you don't specify versions in Firebase library dependencies implementation("com.google.firebase:firebase-firestore") + implementation 'androidx.activity:activity:1.8.0' testImplementation 'junit:junit:4.13.2' androidTestImplementation 'androidx.test.ext:junit:1.1.5' diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index cbdd641..4eab6a4 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -6,10 +6,11 @@ - - + + + + { + Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars()); + v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom); + return insets; + }); + } +} \ No newline at end of file diff --git a/app/src/main/res/layout/activity_qr_control.xml b/app/src/main/res/layout/activity_qr_control.xml new file mode 100644 index 0000000..3aa44dd --- /dev/null +++ b/app/src/main/res/layout/activity_qr_control.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file