From c5c176808304a31055e6506ab994543dc198cd2d Mon Sep 17 00:00:00 2001 From: r-ca Date: Sun, 17 Dec 2023 22:12:45 +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 --- app/src/main/java/one/nem/lacerta/MainActivity.java | 4 ++-- app/src/main/res/layout/activity_main.xml | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/one/nem/lacerta/MainActivity.java b/app/src/main/java/one/nem/lacerta/MainActivity.java index 404debd0..e3f8087b 100644 --- a/app/src/main/java/one/nem/lacerta/MainActivity.java +++ b/app/src/main/java/one/nem/lacerta/MainActivity.java @@ -10,8 +10,7 @@ import android.os.Bundle; import android.widget.Toast; import com.google.android.material.bottomnavigation.BottomNavigationView; - - +import com.google.android.material.color.DynamicColors; import dagger.hilt.android.AndroidEntryPoint; @@ -23,6 +22,7 @@ public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + // DynamicColorを有効化 setContentView(R.layout.activity_main); // Debug diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index 0d575ad0..4c4fa3a1 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -4,7 +4,6 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:theme="@style/Theme.Lacerta" tools:context=".MainActivity">