From 9e8b22218131ff5ee48e4907e2c606b5e98f5639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=8D=E3=82=80=E3=81=AD=E3=81=93?= Date: Mon, 11 Dec 2023 11:46:51 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../debug/DebugMenuContainerActivity.java | 24 +++++++++++++++++++ .../layout/activity_debug_menu_container.xml | 23 ++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuContainerActivity.java create mode 100644 feature/debug/src/main/res/layout/activity_debug_menu_container.xml diff --git a/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuContainerActivity.java b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuContainerActivity.java new file mode 100644 index 00000000..ae7ab5c7 --- /dev/null +++ b/feature/debug/src/main/java/one/nem/lacerta/feature/debug/DebugMenuContainerActivity.java @@ -0,0 +1,24 @@ +package one.nem.lacerta.feature.debug; + +import android.os.Bundle; + +import androidx.activity.EdgeToEdge; +import androidx.appcompat.app.AppCompatActivity; +import androidx.core.graphics.Insets; +import androidx.core.view.ViewCompat; +import androidx.core.view.WindowInsetsCompat; + +public class DebugMenuContainerActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + EdgeToEdge.enable(this); + setContentView(R.layout.activity_debug_menu_container); + ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> { + 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/feature/debug/src/main/res/layout/activity_debug_menu_container.xml b/feature/debug/src/main/res/layout/activity_debug_menu_container.xml new file mode 100644 index 00000000..66bd06cc --- /dev/null +++ b/feature/debug/src/main/res/layout/activity_debug_menu_container.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file