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">